Class TemplateStructurePiece
java.lang.Object
net.minecraft.world.gen.feature.structure.StructurePiece
net.minecraft.world.gen.feature.structure.TemplateStructurePiece
- Direct Known Subclasses:
EndCityPieces.CityTemplate
,IglooPieces.Piece
,NetherFossilStructures.Piece
,OceanRuinPieces.Piece
,RuinedPortalPiece
,ShipwreckPieces.Piece
,WoodlandMansionPieces.MansionTemplate
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.gen.feature.structure.StructurePiece
StructurePiece.BlockSelector
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.apache.logging.log4j.Logger
protected PlacementSettings
protected Template
protected BlockPos
Fields inherited from class net.minecraft.world.gen.feature.structure.StructurePiece
boundingBox, CAVE_AIR, genDepth
-
Constructor Summary
ConstructorDescriptionTemplateStructurePiece
(IStructurePieceType p_i51338_1_, int p_i51338_2_) TemplateStructurePiece
(IStructurePieceType p_i51339_1_, CompoundNBT p_i51339_2_) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addAdditionalSaveData
(CompoundNBT p_143011_1_) protected abstract void
handleDataMarker
(String p_186175_1_, BlockPos p_186175_2_, IServerWorld p_186175_3_, Random p_186175_4_, MutableBoundingBox p_186175_5_) void
move
(int p_181138_1_, int p_181138_2_, int p_181138_3_) boolean
postProcess
(ISeedReader p_230383_1_, StructureManager p_230383_2_, ChunkGenerator p_230383_3_, Random p_230383_4_, MutableBoundingBox p_230383_5_, ChunkPos p_230383_6_, BlockPos p_230383_7_) protected void
setup
(Template p_186173_1_, BlockPos p_186173_2_, PlacementSettings p_186173_3_) Methods inherited from class net.minecraft.world.gen.feature.structure.StructurePiece
addChildren, createChest, createChest, createDispenser, createTag, edgesLiquid, fillColumnDown, findCollisionPiece, generateAirBox, generateBox, generateBox, generateMaybeBox, generateUpperHalfSphere, getBlock, getBoundingBox, getGenDepth, getOrientation, getType, getWorldX, getWorldY, getWorldZ, isCloseToChunk, isInterior, maybeGenerateBlock, placeBlock, reorient, setOrientation
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
template
-
placeSettings
-
templatePosition
-
-
Constructor Details
-
TemplateStructurePiece
-
TemplateStructurePiece
-
-
Method Details
-
setup
-
addAdditionalSaveData
- Specified by:
addAdditionalSaveData
in classStructurePiece
-
postProcess
public boolean postProcess(ISeedReader p_230383_1_, StructureManager p_230383_2_, ChunkGenerator p_230383_3_, Random p_230383_4_, MutableBoundingBox p_230383_5_, ChunkPos p_230383_6_, BlockPos p_230383_7_) - Specified by:
postProcess
in classStructurePiece
-
handleDataMarker
protected abstract void handleDataMarker(String p_186175_1_, BlockPos p_186175_2_, IServerWorld p_186175_3_, Random p_186175_4_, MutableBoundingBox p_186175_5_) -
move
public void move(int p_181138_1_, int p_181138_2_, int p_181138_3_) - Overrides:
move
in classStructurePiece
-
getRotation
- Overrides:
getRotation
in classStructurePiece
-