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
public abstract class TemplateStructurePiece extends StructurePiece
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.world.gen.feature.structure.StructurePiece
StructurePiece.BlockSelector
-
-
Field Summary
Fields Modifier and Type Field Description private static org.apache.logging.log4j.Logger
LOGGER
protected PlacementSettings
placeSettings
protected Template
template
protected BlockPos
templatePosition
-
Fields inherited from class net.minecraft.world.gen.feature.structure.StructurePiece
boundingBox, CAVE_AIR, genDepth
-
-
Constructor Summary
Constructors Constructor Description TemplateStructurePiece(IStructurePieceType p_i51338_1_, int p_i51338_2_)
TemplateStructurePiece(IStructurePieceType p_i51339_1_, CompoundNBT p_i51339_2_)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
addAdditionalSaveData(CompoundNBT p_143011_1_)
Rotation
getRotation()
protected abstract void
handleDataMarker(java.lang.String p_186175_1_, BlockPos p_186175_2_, IServerWorld p_186175_3_, java.util.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_, java.util.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 Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
template
protected Template template
-
placeSettings
protected PlacementSettings placeSettings
-
templatePosition
protected BlockPos templatePosition
-
-
Constructor Detail
-
TemplateStructurePiece
public TemplateStructurePiece(IStructurePieceType p_i51338_1_, int p_i51338_2_)
-
TemplateStructurePiece
public TemplateStructurePiece(IStructurePieceType p_i51339_1_, CompoundNBT p_i51339_2_)
-
-
Method Detail
-
setup
protected void setup(Template p_186173_1_, BlockPos p_186173_2_, PlacementSettings p_186173_3_)
-
addAdditionalSaveData
protected void addAdditionalSaveData(CompoundNBT p_143011_1_)
- Specified by:
addAdditionalSaveData
in classStructurePiece
-
postProcess
public boolean postProcess(ISeedReader p_230383_1_, StructureManager p_230383_2_, ChunkGenerator p_230383_3_, java.util.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(java.lang.String p_186175_1_, BlockPos p_186175_2_, IServerWorld p_186175_3_, java.util.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
public Rotation getRotation()
- Overrides:
getRotation
in classStructurePiece
-
-