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 p_i51339_1_,
                      CompoundNBT p_i51339_2_) | 
| TemplateStructurePiece(IStructurePieceType p_i51338_1_,
                      int p_i51338_2_) | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | addComponentParts(IWorld worldIn,
                 java.util.Random randomIn,
                 MutableBoundingBox structureBoundingBoxIn,
                 ChunkPos p_74875_4_) | 
| 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_214807_k, func_214810_a, generateChest, generateChest, generateMaybeBox, getBlockStateFromPos, getBoundingBox, getComponentType, getCoordBaseMode, getSkyBrightness, getXWithOffset, getYWithOffset, getZWithOffset, isLiquidInStructureBoundingBox, randomlyPlaceBlock, randomlyRareFillWithBlocks, replaceAirAndLiquidDownwards, setBlockState, setCoordBaseMode, writeprotected Template template
protected PlacementSettings placeSettings
protected BlockPos templatePosition
public TemplateStructurePiece(IStructurePieceType p_i51338_1_, int p_i51338_2_)
public TemplateStructurePiece(IStructurePieceType p_i51339_1_, CompoundNBT p_i51339_2_)
protected void setup(Template templateIn, BlockPos pos, PlacementSettings settings)
protected void readAdditional(CompoundNBT tagCompound)
readAdditional in class StructurePiecepublic boolean addComponentParts(IWorld worldIn, java.util.Random randomIn, MutableBoundingBox structureBoundingBoxIn, ChunkPos p_74875_4_)
addComponentParts 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