Class TemplateStructurePiece
java.lang.Object
net.minecraft.world.level.levelgen.structure.StructurePiece
net.minecraft.world.level.levelgen.structure.TemplateStructurePiece
- Direct Known Subclasses:
EndCityPieces.EndCityPiece
,IglooPieces.IglooPiece
,NetherFossilPieces.NetherFossilPiece
,OceanRuinPieces.OceanRuinPiece
,RuinedPortalPiece
,ShipwreckPieces.ShipwreckPiece
,WoodlandMansionPieces.WoodlandMansionPiece
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.levelgen.structure.StructurePiece
StructurePiece.BlockSelector
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
protected StructurePlaceSettings
protected StructureTemplate
protected final String
protected BlockPos
Fields inherited from class net.minecraft.world.level.levelgen.structure.StructurePiece
boundingBox, CAVE_AIR, genDepth
-
Constructor Summary
ConstructorDescriptionTemplateStructurePiece
(StructurePieceType p_226886_, int p_226887_, StructureTemplateManager p_226888_, ResourceLocation p_226889_, String p_226890_, StructurePlaceSettings p_226891_, BlockPos p_226892_) TemplateStructurePiece
(StructurePieceType p_226894_, CompoundTag p_226895_, StructureTemplateManager p_226896_, Function<ResourceLocation, StructurePlaceSettings> p_226897_) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addAdditionalSaveData
(StructurePieceSerializationContext p_192690_, CompoundTag p_192691_) protected abstract void
handleDataMarker
(String p_226906_, BlockPos p_226907_, ServerLevelAccessor p_226908_, RandomSource p_226909_, BoundingBox p_226910_) protected ResourceLocation
void
move
(int p_73668_, int p_73669_, int p_73670_) Deprecated.void
postProcess
(WorldGenLevel p_226899_, StructureManager p_226900_, ChunkGenerator p_226901_, RandomSource p_226902_, BoundingBox p_226903_, ChunkPos p_226904_, BlockPos p_226905_) template()
Methods inherited from class net.minecraft.world.level.levelgen.structure.StructurePiece
addChildren, canBeReplaced, createBoundingBox, createChest, createChest, createDispenser, createTag, fillColumnDown, findCollisionPiece, generateAirBox, generateBox, generateBox, generateBox, generateBox, generateMaybeBox, generateUpperHalfSphere, getBlock, getBoundingBox, getGenDepth, getLocatorPosition, getMirror, getOrientation, getRandomHorizontalDirection, getType, getWorldPos, getWorldX, getWorldY, getWorldZ, isCloseToChunk, isInterior, isReplaceableByStructures, makeBoundingBox, maybeGenerateBlock, placeBlock, reorient, setGenDepth, setOrientation
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
templateName
-
template
-
placeSettings
-
templatePosition
-
-
Constructor Details
-
TemplateStructurePiece
public TemplateStructurePiece(StructurePieceType p_226886_, int p_226887_, StructureTemplateManager p_226888_, ResourceLocation p_226889_, String p_226890_, StructurePlaceSettings p_226891_, BlockPos p_226892_) -
TemplateStructurePiece
public TemplateStructurePiece(StructurePieceType p_226894_, CompoundTag p_226895_, StructureTemplateManager p_226896_, Function<ResourceLocation, StructurePlaceSettings> p_226897_)
-
-
Method Details
-
makeTemplateLocation
-
addAdditionalSaveData
protected void addAdditionalSaveData(StructurePieceSerializationContext p_192690_, CompoundTag p_192691_) - Specified by:
addAdditionalSaveData
in classStructurePiece
-
postProcess
public void postProcess(WorldGenLevel p_226899_, StructureManager p_226900_, ChunkGenerator p_226901_, RandomSource p_226902_, BoundingBox p_226903_, ChunkPos p_226904_, BlockPos p_226905_) - Specified by:
postProcess
in classStructurePiece
-
handleDataMarker
protected abstract void handleDataMarker(String p_226906_, BlockPos p_226907_, ServerLevelAccessor p_226908_, RandomSource p_226909_, BoundingBox p_226910_) -
move
Deprecated.- Overrides:
move
in classStructurePiece
-
getRotation
- Overrides:
getRotation
in classStructurePiece
-
template
-
templatePosition
-
placeSettings
-