public abstract class StructurePiece
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
StructurePiece.BlockSelector |
Modifier and Type | Field and Description |
---|---|
protected MutableBoundingBox |
boundingBox |
protected static BlockState |
CAVE_AIR |
protected int |
componentType |
Modifier | Constructor and Description |
---|---|
|
StructurePiece(IStructurePieceType p_i51343_1_,
CompoundNBT p_i51343_2_) |
protected |
StructurePiece(IStructurePieceType p_i51342_1_,
int p_i51342_2_) |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
addComponentParts(IWorld worldIn,
java.util.Random randomIn,
MutableBoundingBox structureBoundingBoxIn,
ChunkPos p_74875_4_) |
void |
buildComponent(StructurePiece componentIn,
java.util.List<StructurePiece> listIn,
java.util.Random rand) |
protected boolean |
createDispenser(IWorld worldIn,
MutableBoundingBox sbb,
java.util.Random rand,
int x,
int y,
int z,
Direction facing,
ResourceLocation lootTableIn) |
protected void |
fillWithAir(IWorld worldIn,
MutableBoundingBox structurebb,
int minX,
int minY,
int minZ,
int maxX,
int maxY,
int maxZ) |
protected void |
fillWithBlocks(IWorld worldIn,
MutableBoundingBox boundingboxIn,
int xMin,
int yMin,
int zMin,
int xMax,
int yMax,
int zMax,
BlockState boundaryBlockState,
BlockState insideBlockState,
boolean existingOnly) |
protected void |
fillWithRandomizedBlocks(IWorld worldIn,
MutableBoundingBox boundingboxIn,
int minX,
int minY,
int minZ,
int maxX,
int maxY,
int maxZ,
boolean alwaysReplace,
java.util.Random rand,
StructurePiece.BlockSelector blockselector) |
static StructurePiece |
findIntersecting(java.util.List<StructurePiece> listIn,
MutableBoundingBox boundingboxIn) |
static BlockState |
func_197528_a(IBlockReader p_197528_0_,
BlockPos p_197528_1_,
BlockState p_197528_2_) |
IStructurePieceType |
func_214807_k() |
boolean |
func_214810_a(ChunkPos p_214810_1_,
int p_214810_2_) |
protected boolean |
generateChest(IWorld p_191080_1_,
MutableBoundingBox p_191080_2_,
java.util.Random p_191080_3_,
BlockPos p_191080_4_,
ResourceLocation p_191080_5_,
BlockState p_191080_6_) |
protected boolean |
generateChest(IWorld worldIn,
MutableBoundingBox structurebb,
java.util.Random randomIn,
int x,
int y,
int z,
ResourceLocation loot) |
protected void |
generateMaybeBox(IWorld worldIn,
MutableBoundingBox sbb,
java.util.Random rand,
float chance,
int x1,
int y1,
int z1,
int x2,
int y2,
int z2,
BlockState edgeState,
BlockState state,
boolean requireNonAir,
boolean requiredSkylight) |
protected BlockState |
getBlockStateFromPos(IBlockReader worldIn,
int x,
int y,
int z,
MutableBoundingBox boundingboxIn) |
MutableBoundingBox |
getBoundingBox() |
int |
getComponentType() |
Direction |
getCoordBaseMode() |
Rotation |
getRotation() |
protected boolean |
getSkyBrightness(IWorldReader worldIn,
int x,
int y,
int z,
MutableBoundingBox boundingboxIn) |
protected int |
getXWithOffset(int x,
int z) |
protected int |
getYWithOffset(int y) |
protected int |
getZWithOffset(int x,
int z) |
protected boolean |
isLiquidInStructureBoundingBox(IBlockReader worldIn,
MutableBoundingBox boundingboxIn) |
void |
offset(int x,
int y,
int z) |
protected void |
randomlyPlaceBlock(IWorld worldIn,
MutableBoundingBox boundingboxIn,
java.util.Random rand,
float chance,
int x,
int y,
int z,
BlockState blockstateIn) |
protected void |
randomlyRareFillWithBlocks(IWorld worldIn,
MutableBoundingBox boundingboxIn,
int minX,
int minY,
int minZ,
int maxX,
int maxY,
int maxZ,
BlockState blockstateIn,
boolean excludeAir) |
protected abstract void |
readAdditional(CompoundNBT tagCompound) |
protected void |
replaceAirAndLiquidDownwards(IWorld worldIn,
BlockState blockstateIn,
int x,
int y,
int z,
MutableBoundingBox boundingboxIn) |
protected void |
setBlockState(IWorld worldIn,
BlockState blockstateIn,
int x,
int y,
int z,
MutableBoundingBox boundingboxIn) |
void |
setCoordBaseMode(Direction facing) |
CompoundNBT |
write() |
protected static final BlockState CAVE_AIR
protected MutableBoundingBox boundingBox
protected int componentType
protected StructurePiece(IStructurePieceType p_i51342_1_, int p_i51342_2_)
public StructurePiece(IStructurePieceType p_i51343_1_, CompoundNBT p_i51343_2_)
public final CompoundNBT write()
protected abstract void readAdditional(CompoundNBT tagCompound)
public void buildComponent(StructurePiece componentIn, java.util.List<StructurePiece> listIn, java.util.Random rand)
public abstract boolean addComponentParts(IWorld worldIn, java.util.Random randomIn, MutableBoundingBox structureBoundingBoxIn, ChunkPos p_74875_4_)
public MutableBoundingBox getBoundingBox()
public int getComponentType()
public boolean func_214810_a(ChunkPos p_214810_1_, int p_214810_2_)
public static StructurePiece findIntersecting(java.util.List<StructurePiece> listIn, MutableBoundingBox boundingboxIn)
protected boolean isLiquidInStructureBoundingBox(IBlockReader worldIn, MutableBoundingBox boundingboxIn)
protected int getXWithOffset(int x, int z)
protected int getYWithOffset(int y)
protected int getZWithOffset(int x, int z)
protected void setBlockState(IWorld worldIn, BlockState blockstateIn, int x, int y, int z, MutableBoundingBox boundingboxIn)
protected BlockState getBlockStateFromPos(IBlockReader worldIn, int x, int y, int z, MutableBoundingBox boundingboxIn)
protected boolean getSkyBrightness(IWorldReader worldIn, int x, int y, int z, MutableBoundingBox boundingboxIn)
protected void fillWithAir(IWorld worldIn, MutableBoundingBox structurebb, int minX, int minY, int minZ, int maxX, int maxY, int maxZ)
protected void fillWithBlocks(IWorld worldIn, MutableBoundingBox boundingboxIn, int xMin, int yMin, int zMin, int xMax, int yMax, int zMax, BlockState boundaryBlockState, BlockState insideBlockState, boolean existingOnly)
protected void fillWithRandomizedBlocks(IWorld worldIn, MutableBoundingBox boundingboxIn, int minX, int minY, int minZ, int maxX, int maxY, int maxZ, boolean alwaysReplace, java.util.Random rand, StructurePiece.BlockSelector blockselector)
protected void generateMaybeBox(IWorld worldIn, MutableBoundingBox sbb, java.util.Random rand, float chance, int x1, int y1, int z1, int x2, int y2, int z2, BlockState edgeState, BlockState state, boolean requireNonAir, boolean requiredSkylight)
protected void randomlyPlaceBlock(IWorld worldIn, MutableBoundingBox boundingboxIn, java.util.Random rand, float chance, int x, int y, int z, BlockState blockstateIn)
protected void randomlyRareFillWithBlocks(IWorld worldIn, MutableBoundingBox boundingboxIn, int minX, int minY, int minZ, int maxX, int maxY, int maxZ, BlockState blockstateIn, boolean excludeAir)
protected void replaceAirAndLiquidDownwards(IWorld worldIn, BlockState blockstateIn, int x, int y, int z, MutableBoundingBox boundingboxIn)
protected boolean generateChest(IWorld worldIn, MutableBoundingBox structurebb, java.util.Random randomIn, int x, int y, int z, ResourceLocation loot)
public static BlockState func_197528_a(IBlockReader p_197528_0_, BlockPos p_197528_1_, BlockState p_197528_2_)
protected boolean generateChest(IWorld p_191080_1_, MutableBoundingBox p_191080_2_, java.util.Random p_191080_3_, BlockPos p_191080_4_, ResourceLocation p_191080_5_, @Nullable BlockState p_191080_6_)
protected boolean createDispenser(IWorld worldIn, MutableBoundingBox sbb, java.util.Random rand, int x, int y, int z, Direction facing, ResourceLocation lootTableIn)
public void offset(int x, int y, int z)
@Nullable public Direction getCoordBaseMode()
public void setCoordBaseMode(@Nullable Direction facing)
public Rotation getRotation()
public IStructurePieceType func_214807_k()