public abstract class StructureComponentTemplate extends StructureComponent
StructureComponent.BlockSelector| Modifier and Type | Field and Description |
|---|---|
private static PlacementSettings |
DEFAULT_PLACE_SETTINGS |
protected PlacementSettings |
placeSettings |
protected Template |
template |
protected BlockPos |
templatePosition |
boundingBox, componentType| Constructor and Description |
|---|
StructureComponentTemplate() |
StructureComponentTemplate(int type) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addComponentParts(World worldIn,
java.util.Random randomIn,
StructureBoundingBox structureBoundingBoxIn) |
protected abstract void |
handleDataMarker(java.lang.String function,
BlockPos pos,
World worldIn,
java.util.Random rand,
StructureBoundingBox sbb) |
void |
offset(int x,
int y,
int z) |
protected void |
readStructureFromNBT(NBTTagCompound tagCompound,
TemplateManager p_143011_2_) |
private void |
setBoundingBoxFromTemplate() |
protected void |
setup(Template templateIn,
BlockPos pos,
PlacementSettings settings) |
protected void |
writeStructureToNBT(NBTTagCompound tagCompound) |
buildComponent, clearCurrentPositionBlocksUpwards, createDispenser, createStructureBaseNBT, fillWithAir, fillWithBlocks, fillWithRandomizedBlocks, findIntersecting, generateChest, generateChest, generateDoor, generateMaybeBox, getBlockStateFromPos, getBoundingBox, getComponentType, getCoordBaseMode, getSkyBrightness, getXWithOffset, getYWithOffset, getZWithOffset, isLiquidInStructureBoundingBox, randomlyPlaceBlock, randomlyRareFillWithBlocks, readStructureBaseNBT, replaceAirAndLiquidDownwards, setBlockState, setCoordBaseModeprivate static final PlacementSettings DEFAULT_PLACE_SETTINGS
protected Template template
protected PlacementSettings placeSettings
protected BlockPos templatePosition
public StructureComponentTemplate()
public StructureComponentTemplate(int type)
protected void setup(Template templateIn, BlockPos pos, PlacementSettings settings)
protected void writeStructureToNBT(NBTTagCompound tagCompound)
writeStructureToNBT in class StructureComponentprotected void readStructureFromNBT(NBTTagCompound tagCompound, TemplateManager p_143011_2_)
readStructureFromNBT in class StructureComponentpublic boolean addComponentParts(World worldIn, java.util.Random randomIn, StructureBoundingBox structureBoundingBoxIn)
addComponentParts in class StructureComponentprotected abstract void handleDataMarker(java.lang.String function,
BlockPos pos,
World worldIn,
java.util.Random rand,
StructureBoundingBox sbb)
private void setBoundingBoxFromTemplate()
public void offset(int x,
int y,
int z)
offset in class StructureComponent