public abstract class StructureComponentTemplate extends StructureComponent
StructureComponent.BlockSelector
Modifier and Type | Field and Description |
---|---|
protected PlacementSettings |
placeSettings |
protected Template |
template |
protected BlockPos |
templatePosition |
boundingBox, componentType
Constructor and Description |
---|
StructureComponentTemplate() |
StructureComponentTemplate(int p_i46662_1_) |
Modifier and Type | Method and Description |
---|---|
boolean |
addComponentParts(World worldIn,
java.util.Random randomIn,
StructureBoundingBox structureBoundingBoxIn) |
protected abstract void |
handleDataMarker(java.lang.String p_186175_1_,
BlockPos p_186175_2_,
World p_186175_3_,
java.util.Random p_186175_4_,
StructureBoundingBox p_186175_5_) |
void |
offset(int x,
int y,
int z) |
protected void |
readStructureFromNBT(NBTTagCompound tagCompound) |
protected void |
setup(Template p_186173_1_,
BlockPos p_186173_2_,
PlacementSettings p_186173_3_) |
protected void |
writeStructureToNBT(NBTTagCompound tagCompound) |
buildComponent, clearCurrentPositionBlocksUpwards, createDispenser, createStructureBaseNBT, fillWithAir, fillWithBlocks, fillWithBlocksRandomly, fillWithRandomizedBlocks, findIntersecting, generateChest, getBlockStateFromPos, getBoundingBox, getBoundingBoxCenter, getComponentType, getCoordBaseMode, getXWithOffset, getYWithOffset, getZWithOffset, isLiquidInStructureBoundingBox, placeDoorCurrentPosition, randomlyPlaceBlock, randomlyRareFillWithBlocks, readStructureBaseNBT, replaceAirAndLiquidDownwards, setBlockState, setCoordBaseMode
protected Template template
protected PlacementSettings placeSettings
protected BlockPos templatePosition
public StructureComponentTemplate()
public StructureComponentTemplate(int p_i46662_1_)
protected void setup(Template p_186173_1_, BlockPos p_186173_2_, PlacementSettings p_186173_3_)
protected void writeStructureToNBT(NBTTagCompound tagCompound)
writeStructureToNBT
in class StructureComponent
protected void readStructureFromNBT(NBTTagCompound tagCompound)
readStructureFromNBT
in class StructureComponent
public boolean addComponentParts(World worldIn, java.util.Random randomIn, StructureBoundingBox structureBoundingBoxIn)
addComponentParts
in class StructureComponent
protected abstract void handleDataMarker(java.lang.String p_186175_1_, BlockPos p_186175_2_, World p_186175_3_, java.util.Random p_186175_4_, StructureBoundingBox p_186175_5_)
public void offset(int x, int y, int z)
offset
in class StructureComponent