public static class MineshaftPieces.Corridor extends MineshaftPieces.Piece
StructurePiece.BlockSelector
Modifier and Type | Field and Description |
---|---|
private boolean |
hasRails |
private boolean |
hasSpiders |
private int |
sectionCount |
private boolean |
spawnerPlaced |
mineShaftType
boundingBox, CAVE_AIR, componentType
Constructor and Description |
---|
Corridor(int p_i47140_1_,
java.util.Random p_i47140_2_,
MutableBoundingBox p_i47140_3_,
Direction p_i47140_4_,
MineshaftStructure.Type p_i47140_5_) |
Corridor(TemplateManager p_i50456_1_,
CompoundNBT p_i50456_2_) |
Modifier and Type | Method and Description |
---|---|
void |
buildComponent(StructurePiece componentIn,
java.util.List<StructurePiece> listIn,
java.util.Random rand) |
boolean |
create(IWorld worldIn,
ChunkGenerator<?> chunkGeneratorIn,
java.util.Random randomIn,
MutableBoundingBox mutableBoundingBoxIn,
ChunkPos chunkPosIn) |
static MutableBoundingBox |
findCorridorSize(java.util.List<StructurePiece> p_175814_0_,
java.util.Random rand,
int x,
int y,
int z,
Direction facing) |
protected boolean |
generateChest(IWorld worldIn,
MutableBoundingBox structurebb,
java.util.Random randomIn,
int x,
int y,
int z,
ResourceLocation loot) |
private void |
placeCobWeb(IWorld p_189922_1_,
MutableBoundingBox p_189922_2_,
java.util.Random p_189922_3_,
float p_189922_4_,
int p_189922_5_,
int p_189922_6_,
int p_189922_7_) |
private void |
placeSupport(IWorld p_189921_1_,
MutableBoundingBox p_189921_2_,
int p_189921_3_,
int p_189921_4_,
int p_189921_5_,
int p_189921_6_,
int p_189921_7_,
java.util.Random p_189921_8_) |
protected void |
readAdditional(CompoundNBT tagCompound) |
getFenceBlock, getPlanksBlock, isSupportingBox
correctFacing, createDispenser, fillWithAir, fillWithBlocks, fillWithRandomizedBlocks, findIntersecting, func_214810_a, generateChest, generateMaybeBox, getBlockStateFromPos, getBoundingBox, getComponentType, getCoordBaseMode, getRotation, getSkyBrightness, getStructurePieceType, getXWithOffset, getYWithOffset, getZWithOffset, isLiquidInStructureBoundingBox, offset, randomlyPlaceBlock, randomlyRareFillWithBlocks, replaceAirAndLiquidDownwards, setBlockState, setCoordBaseMode, write
private final boolean hasRails
private final boolean hasSpiders
private boolean spawnerPlaced
private final int sectionCount
public Corridor(TemplateManager p_i50456_1_, CompoundNBT p_i50456_2_)
public Corridor(int p_i47140_1_, java.util.Random p_i47140_2_, MutableBoundingBox p_i47140_3_, Direction p_i47140_4_, MineshaftStructure.Type p_i47140_5_)
protected void readAdditional(CompoundNBT tagCompound)
readAdditional
in class MineshaftPieces.Piece
public static MutableBoundingBox findCorridorSize(java.util.List<StructurePiece> p_175814_0_, java.util.Random rand, int x, int y, int z, Direction facing)
public void buildComponent(StructurePiece componentIn, java.util.List<StructurePiece> listIn, java.util.Random rand)
buildComponent
in class StructurePiece
protected boolean generateChest(IWorld worldIn, MutableBoundingBox structurebb, java.util.Random randomIn, int x, int y, int z, ResourceLocation loot)
generateChest
in class StructurePiece
public boolean create(IWorld worldIn, ChunkGenerator<?> chunkGeneratorIn, java.util.Random randomIn, MutableBoundingBox mutableBoundingBoxIn, ChunkPos chunkPosIn)
create
in class StructurePiece
private void placeSupport(IWorld p_189921_1_, MutableBoundingBox p_189921_2_, int p_189921_3_, int p_189921_4_, int p_189921_5_, int p_189921_6_, int p_189921_7_, java.util.Random p_189921_8_)
private void placeCobWeb(IWorld p_189922_1_, MutableBoundingBox p_189922_2_, java.util.Random p_189922_3_, float p_189922_4_, int p_189922_5_, int p_189922_6_, int p_189922_7_)