public abstract class GelJigsawStructure extends GelStructure<net.minecraft.world.gen.feature.structure.VillageConfig>
GelStructure
to use with jigsaw structures.Modifier and Type | Class and Description |
---|---|
static class |
GelJigsawStructure.Start |
Modifier and Type | Field and Description |
---|---|
int |
deltaY
If
placesOnSurface is set to false, this behaves
as the y value that your structure places at. |
boolean |
flag1
Unsure what this is used for at the time of writing this.
|
boolean |
placesOnSurface
Determines if your structure should place on the surface or at a specific y
value.
|
insideSpawnsOnly, seed, spawns
BASTION_REMNANT, BURIED_TREASURE, DESERT_PYRAMID, END_CITY, field_236384_t_, FORTRESS, IGLOO, JUNGLE_PYRAMID, MINESHAFT, MONUMENT, NAME_STRUCTURE_BIMAP, NETHER_FOSSIL, OCEAN_RUIN, PILLAGER_OUTPOST, RUINED_PORTAL, SHIPWRECK, STRONGHOLD, STRUCTURE_DECORATION_STAGE_MAP, SWAMP_HUT, VILLAGE, WOODLAND_MANSION
Constructor and Description |
---|
GelJigsawStructure(com.mojang.serialization.Codec<net.minecraft.world.gen.feature.structure.VillageConfig> codec,
int deltaY,
boolean flag1,
boolean placesOnSurface) |
Modifier and Type | Method and Description |
---|---|
net.minecraft.world.gen.feature.structure.AbstractVillagePiece |
getPiece(net.minecraft.world.gen.feature.template.TemplateManager templateManager,
net.minecraft.world.gen.feature.jigsaw.JigsawPiece jigsawPiece,
net.minecraft.util.math.BlockPos pos,
int groundLevelDelta,
net.minecraft.util.Rotation rotation,
net.minecraft.util.math.MutableBoundingBox bounds) |
net.minecraft.world.gen.feature.jigsaw.JigsawManager.IPieceFactory |
getPieceType()
Override this with a declaration of your own extension of
GelStructurePiece to use data markers. |
net.minecraft.world.gen.feature.structure.Structure.IStartFactory<net.minecraft.world.gen.feature.structure.VillageConfig> |
getStartFactory() |
void |
handleStartFactory(GelJigsawStructure.Start start,
net.minecraft.util.registry.DynamicRegistries dynamicRegistries,
net.minecraft.world.gen.ChunkGenerator chunkGen,
net.minecraft.world.gen.feature.template.TemplateManager templateManager,
int chunkX,
int chunkZ,
net.minecraft.world.biome.Biome biome,
net.minecraft.world.gen.feature.structure.VillageConfig config)
Called in the start factory so you won't need to make your own for basic
things.
|
func_236388_a_, getChunkPosForStructure, getCreatureSpawnList, getDecorationStage, getNoiseSettingsToGenerateIn, getOffset, getProbability, getSeed, getSeparationSettings, getSpacing, getSpawnList, getSpawns, getStructureName, potentialSpawnsEvent, setLakeProof, setSpawnList
deserializeStructureStart, func_242785_a, getFeatureCodec, getSpawnList, init, withConfiguration
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
public final int deltaY
placesOnSurface
is set to false, this behaves
as the y value that your structure places at. If true, your structure will
place on the surface with this as a vertical offset.public final boolean flag1
public final boolean placesOnSurface
public GelJigsawStructure(com.mojang.serialization.Codec<net.minecraft.world.gen.feature.structure.VillageConfig> codec, int deltaY, boolean flag1, boolean placesOnSurface)
public net.minecraft.world.gen.feature.jigsaw.JigsawManager.IPieceFactory getPieceType()
GelStructurePiece
to use data markers.JigsawManager.IPieceFactory
public net.minecraft.world.gen.feature.structure.AbstractVillagePiece getPiece(net.minecraft.world.gen.feature.template.TemplateManager templateManager, net.minecraft.world.gen.feature.jigsaw.JigsawPiece jigsawPiece, net.minecraft.util.math.BlockPos pos, int groundLevelDelta, net.minecraft.util.Rotation rotation, net.minecraft.util.math.MutableBoundingBox bounds)
templateManager
- jigsawPiece
- pos
- groundLevelDelta
- rotation
- bounds
- AbstractVillagePiece
public void handleStartFactory(GelJigsawStructure.Start start, net.minecraft.util.registry.DynamicRegistries dynamicRegistries, net.minecraft.world.gen.ChunkGenerator chunkGen, net.minecraft.world.gen.feature.template.TemplateManager templateManager, int chunkX, int chunkZ, net.minecraft.world.biome.Biome biome, net.minecraft.world.gen.feature.structure.VillageConfig config)
start
- dynamicRegistries
- chunkGen
- templateManager
- chunkX
- chunkZ
- biome
- config
- public net.minecraft.world.gen.feature.structure.Structure.IStartFactory<net.minecraft.world.gen.feature.structure.VillageConfig> getStartFactory()
getStartFactory
in class net.minecraft.world.gen.feature.structure.Structure<net.minecraft.world.gen.feature.structure.VillageConfig>
IStartFactory