public abstract class TemplateStructurePiece extends StructurePiece
StructurePiece.BlockSelector
Modifier and Type | Field and Description |
---|---|
private static org.apache.logging.log4j.Logger |
LOGGER |
protected PlacementSettings |
placeSettings |
protected Template |
template |
protected BlockPos |
templatePosition |
boundingBox, CAVE_AIR, componentType
Constructor and Description |
---|
TemplateStructurePiece(IStructurePieceType structurePieceTypeIn,
CompoundNBT nbt) |
TemplateStructurePiece(IStructurePieceType structurePieceTypeIn,
int componentTypeIn) |
Modifier and Type | Method and Description |
---|---|
boolean |
create(IWorld worldIn,
ChunkGenerator<?> chunkGeneratorIn,
java.util.Random randomIn,
MutableBoundingBox mutableBoundingBoxIn,
ChunkPos chunkPosIn) |
Rotation |
getRotation() |
protected abstract void |
handleDataMarker(java.lang.String function,
BlockPos pos,
IWorld worldIn,
java.util.Random rand,
MutableBoundingBox sbb) |
void |
offset(int x,
int y,
int z) |
protected void |
readAdditional(CompoundNBT tagCompound) |
protected void |
setup(Template templateIn,
BlockPos pos,
PlacementSettings settings) |
buildComponent, correctFacing, createDispenser, fillWithAir, fillWithBlocks, fillWithRandomizedBlocks, findIntersecting, func_214810_a, generateChest, generateChest, generateMaybeBox, getBlockStateFromPos, getBoundingBox, getComponentType, getCoordBaseMode, getSkyBrightness, getStructurePieceType, getXWithOffset, getYWithOffset, getZWithOffset, isLiquidInStructureBoundingBox, randomlyPlaceBlock, randomlyRareFillWithBlocks, replaceAirAndLiquidDownwards, setBlockState, setCoordBaseMode, write
private static final org.apache.logging.log4j.Logger LOGGER
protected Template template
protected PlacementSettings placeSettings
protected BlockPos templatePosition
public TemplateStructurePiece(IStructurePieceType structurePieceTypeIn, int componentTypeIn)
public TemplateStructurePiece(IStructurePieceType structurePieceTypeIn, CompoundNBT nbt)
protected void setup(Template templateIn, BlockPos pos, PlacementSettings settings)
protected void readAdditional(CompoundNBT tagCompound)
readAdditional
in class StructurePiece
public boolean create(IWorld worldIn, ChunkGenerator<?> chunkGeneratorIn, java.util.Random randomIn, MutableBoundingBox mutableBoundingBoxIn, ChunkPos chunkPosIn)
create
in class StructurePiece
protected abstract void handleDataMarker(java.lang.String function, BlockPos pos, IWorld worldIn, java.util.Random rand, MutableBoundingBox sbb)
public void offset(int x, int y, int z)
offset
in class StructurePiece
public Rotation getRotation()
getRotation
in class StructurePiece