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(IStructurePieceType structurePieceTypeIn,
CompoundNBT nbt) |
TemplateStructurePiece(IStructurePieceType structurePieceTypeIn,
int componentTypeIn) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
func_225577_a_(IWorld p_225577_1_,
ChunkGenerator<?> p_225577_2_,
java.util.Random p_225577_3_,
MutableBoundingBox p_225577_4_,
ChunkPos p_225577_5_) |
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, createDispenser, fillWithAir, fillWithBlocks, fillWithRandomizedBlocks, findIntersecting, func_197528_a, func_214810_a, generateChest, generateChest, generateMaybeBox, getBlockStateFromPos, getBoundingBox, getComponentType, getCoordBaseMode, getSkyBrightness, getStructurePieceType, getXWithOffset, getYWithOffset, getZWithOffset, isLiquidInStructureBoundingBox, randomlyPlaceBlock, randomlyRareFillWithBlocks, replaceAirAndLiquidDownwards, setBlockState, setCoordBaseMode, writeprotected 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 StructurePiecepublic boolean func_225577_a_(IWorld p_225577_1_, ChunkGenerator<?> p_225577_2_, java.util.Random p_225577_3_, MutableBoundingBox p_225577_4_, ChunkPos p_225577_5_)
func_225577_a_ in class StructurePieceprotected 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 StructurePiecepublic Rotation getRotation()
getRotation in class StructurePiece