public static class OceanRuinPieces.Piece extends TemplateStructurePiece
StructurePiece.BlockSelector| Modifier and Type | Field and Description |
|---|---|
private OceanRuinStructure.Type |
biomeType |
private float |
integrity |
private boolean |
isLarge |
private Rotation |
rotation |
private ResourceLocation |
templateName |
placeSettings, template, templatePositionboundingBox, CAVE_AIR, componentType| Constructor and Description |
|---|
Piece(TemplateManager p_i50592_1_,
CompoundNBT p_i50592_2_) |
Piece(TemplateManager templateManagerIn,
ResourceLocation templateNameIn,
BlockPos templatePositionIn,
Rotation rotationIn,
float integrityIn,
OceanRuinStructure.Type typeIn,
boolean isLargeIn) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
create(IWorld worldIn,
ChunkGenerator<?> chunkGeneratorIn,
java.util.Random randomIn,
MutableBoundingBox mutableBoundingBoxIn,
ChunkPos chunkPosIn) |
private int |
func_204035_a(BlockPos templatePos,
IBlockReader blockReaderIn,
BlockPos templateTransformedPos) |
protected void |
handleDataMarker(java.lang.String function,
BlockPos pos,
IWorld worldIn,
java.util.Random rand,
MutableBoundingBox sbb) |
protected void |
readAdditional(CompoundNBT tagCompound) |
private void |
setup(TemplateManager templateManagerIn) |
getRotation, offset, setupbuildComponent, correctFacing, createDispenser, fillWithAir, fillWithBlocks, fillWithRandomizedBlocks, findIntersecting, func_214810_a, generateChest, generateChest, generateMaybeBox, getBlockStateFromPos, getBoundingBox, getComponentType, getCoordBaseMode, getSkyBrightness, getStructurePieceType, getXWithOffset, getYWithOffset, getZWithOffset, isLiquidInStructureBoundingBox, randomlyPlaceBlock, randomlyRareFillWithBlocks, replaceAirAndLiquidDownwards, setBlockState, setCoordBaseMode, writeprivate final OceanRuinStructure.Type biomeType
private final float integrity
private final ResourceLocation templateName
private final Rotation rotation
private final boolean isLarge
public Piece(TemplateManager templateManagerIn, ResourceLocation templateNameIn, BlockPos templatePositionIn, Rotation rotationIn, float integrityIn, OceanRuinStructure.Type typeIn, boolean isLargeIn)
public Piece(TemplateManager p_i50592_1_, CompoundNBT p_i50592_2_)
private void setup(TemplateManager templateManagerIn)
protected void readAdditional(CompoundNBT tagCompound)
readAdditional in class TemplateStructurePieceprotected void handleDataMarker(java.lang.String function,
BlockPos pos,
IWorld worldIn,
java.util.Random rand,
MutableBoundingBox sbb)
handleDataMarker in class TemplateStructurePiecepublic boolean create(IWorld worldIn, ChunkGenerator<?> chunkGeneratorIn, java.util.Random randomIn, MutableBoundingBox mutableBoundingBoxIn, ChunkPos chunkPosIn)
create in class TemplateStructurePieceprivate int func_204035_a(BlockPos templatePos, IBlockReader blockReaderIn, BlockPos templateTransformedPos)