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 org.apache.logging.log4j.Logger
protected StructurePlaceSettings
protected StructureTemplate
protected String
protected BlockPos
Fields inherited from class net.minecraft.world.level.levelgen.structure.StructurePiece
boundingBox, CAVE_AIR, genDepth
-
Constructor Summary
ConstructorDescriptionTemplateStructurePiece(StructurePieceType p_163660_, int p_163661_, StructureManager p_163662_, ResourceLocation p_163663_, String p_163664_, StructurePlaceSettings p_163665_, BlockPos p_163666_)
TemplateStructurePiece(StructurePieceType p_163668_, CompoundTag p_163669_, ServerLevel p_163670_, Function<ResourceLocation,StructurePlaceSettings> p_163671_)
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addAdditionalSaveData(ServerLevel p_163673_, CompoundTag p_163674_)
protected abstract void
handleDataMarker(String p_73683_, BlockPos p_73684_, ServerLevelAccessor p_73685_, Random p_73686_, BoundingBox p_73687_)
protected ResourceLocation
void
move(int p_73668_, int p_73669_, int p_73670_)
boolean
postProcess(WorldGenLevel p_73672_, StructureFeatureManager p_73673_, ChunkGenerator p_73674_, Random p_73675_, BoundingBox p_73676_, ChunkPos p_73677_, BlockPos p_73678_)
Methods inherited from class net.minecraft.world.level.levelgen.structure.StructurePiece
addChildren, canBeReplaced, createChest, createChest, createDispenser, createTag, fillColumnDown, generateAirBox, generateBox, generateBox, generateBox, generateBox, generateMaybeBox, generateUpperHalfSphere, getBlock, getBoundingBox, getGenDepth, getLocatorPosition, getMirror, getNoiseEffect, getOrientation, getRandomHorizontalDirection, getType, getWorldPos, getWorldX, getWorldY, getWorldZ, isCloseToChunk, isInterior, isReplaceableByStructures, makeBoundingBox, maybeGenerateBlock, placeBlock, reorient, setOrientation
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
templateName
-
template
-
placeSettings
-
templatePosition
-
-
Constructor Details
-
TemplateStructurePiece
public TemplateStructurePiece(StructurePieceType p_163660_, int p_163661_, StructureManager p_163662_, ResourceLocation p_163663_, String p_163664_, StructurePlaceSettings p_163665_, BlockPos p_163666_) -
TemplateStructurePiece
public TemplateStructurePiece(StructurePieceType p_163668_, CompoundTag p_163669_, ServerLevel p_163670_, Function<ResourceLocation,StructurePlaceSettings> p_163671_)
-
-
Method Details
-
makeTemplateLocation
-
addAdditionalSaveData
- Specified by:
addAdditionalSaveData
in classStructurePiece
-
postProcess
public boolean postProcess(WorldGenLevel p_73672_, StructureFeatureManager p_73673_, ChunkGenerator p_73674_, Random p_73675_, BoundingBox p_73676_, ChunkPos p_73677_, BlockPos p_73678_)- Specified by:
postProcess
in classStructurePiece
-
handleDataMarker
protected abstract void handleDataMarker(String p_73683_, BlockPos p_73684_, ServerLevelAccessor p_73685_, Random p_73686_, BoundingBox p_73687_) -
move
public void move(int p_73668_, int p_73669_, int p_73670_)- Overrides:
move
in classStructurePiece
-
getRotation
- Overrides:
getRotation
in classStructurePiece
-