public abstract class TemplateStructurePiece extends StructurePiece
StructurePiece.BlockSelector
Modifier and Type | Field and Description |
---|---|
protected PlacementSettings |
placeSettings |
protected Template |
template |
protected BlockPos |
templatePosition |
boundingBox, CAVE_AIR, componentType
Constructor and Description |
---|
TemplateStructurePiece() |
TemplateStructurePiece(int type) |
Modifier and Type | Method and Description |
---|---|
boolean |
addComponentParts(IWorld worldIn,
java.util.Random randomIn,
MutableBoundingBox structureBoundingBoxIn,
ChunkPos p_74875_4_) |
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 |
readStructureFromNBT(NBTTagCompound tagCompound,
TemplateManager p_143011_2_) |
protected void |
setup(Template templateIn,
BlockPos pos,
PlacementSettings settings) |
protected void |
writeStructureToNBT(NBTTagCompound tagCompound) |
buildComponent, clearCurrentPositionBlocksUpwards, createDispenser, createStructureBaseNBT, fillWithAir, fillWithBlocks, fillWithRandomizedBlocks, findIntersecting, func_197528_a, generateChest, generateChest, generateDoor, generateMaybeBox, getBlockStateFromPos, getBoundingBox, getComponentType, getCoordBaseMode, getSkyBrightness, getXWithOffset, getYWithOffset, getZWithOffset, isLiquidInStructureBoundingBox, randomlyPlaceBlock, randomlyRareFillWithBlocks, readStructureBaseNBT, replaceAirAndLiquidDownwards, setBlockState, setCoordBaseMode
protected Template template
protected PlacementSettings placeSettings
protected BlockPos templatePosition
public TemplateStructurePiece()
public TemplateStructurePiece(int type)
protected void setup(Template templateIn, BlockPos pos, PlacementSettings settings)
protected void writeStructureToNBT(NBTTagCompound tagCompound)
writeStructureToNBT
in class StructurePiece
protected void readStructureFromNBT(NBTTagCompound tagCompound, TemplateManager p_143011_2_)
readStructureFromNBT
in class StructurePiece
public boolean addComponentParts(IWorld worldIn, java.util.Random randomIn, MutableBoundingBox structureBoundingBoxIn, ChunkPos p_74875_4_)
addComponentParts
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