public static class StructureMineshaftPieces.Corridor extends StructureComponent
StructureComponent.BlockSelector
Modifier and Type | Field and Description |
---|---|
private boolean |
hasRails |
private boolean |
hasSpiders |
private int |
sectionCount |
private boolean |
spawnerPlaced |
boundingBox, componentType, coordBaseMode
Constructor and Description |
---|
Corridor() |
Corridor(int type,
java.util.Random rand,
StructureBoundingBox structurebb,
EnumFacing facing) |
Modifier and Type | Method and Description |
---|---|
boolean |
addComponentParts(World worldIn,
java.util.Random randomIn,
StructureBoundingBox structureBoundingBoxIn)
second Part of Structure generating, this for example places Spiderwebs, Mob Spawners, it closes Mineshafts at
the end, it adds Fences...
|
void |
buildComponent(StructureComponent componentIn,
java.util.List<StructureComponent> listIn,
java.util.Random rand)
Initiates construction of the Structure Component picked, at the current Location of StructGen
|
static StructureBoundingBox |
func_175814_a(java.util.List<StructureComponent> p_175814_0_,
java.util.Random rand,
int x,
int y,
int z,
EnumFacing facing) |
protected boolean |
generateChestContents(World worldIn,
StructureBoundingBox boundingBoxIn,
java.util.Random rand,
int x,
int y,
int z,
java.util.List<WeightedRandomChestContent> listIn,
int max) |
protected void |
readStructureFromNBT(NBTTagCompound tagCompound)
(abstract) Helper method to read subclass data from NBT
|
protected void |
writeStructureToNBT(NBTTagCompound tagCompound)
(abstract) Helper method to write subclass data to NBT
|
clearCurrentPositionBlocksUpwards, createStructureBaseNBT, fillWithAir, fillWithBlocks, fillWithRandomizedBlocks, findIntersecting, func_175805_a, func_181138_a, generateDispenserContents, getBlockStateFromPos, getBoundingBox, getBoundingBoxCenter, getComponentType, getMetadataWithOffset, getXWithOffset, getYWithOffset, getZWithOffset, isLiquidInStructureBoundingBox, placeDoorCurrentPosition, randomlyPlaceBlock, randomlyRareFillWithBlocks, readStructureBaseNBT, replaceAirAndLiquidDownwards, setBlockState
private boolean hasRails
private boolean hasSpiders
private boolean spawnerPlaced
private int sectionCount
public Corridor()
public Corridor(int type, java.util.Random rand, StructureBoundingBox structurebb, EnumFacing facing)
protected void writeStructureToNBT(NBTTagCompound tagCompound)
StructureComponent
writeStructureToNBT
in class StructureComponent
protected void readStructureFromNBT(NBTTagCompound tagCompound)
StructureComponent
readStructureFromNBT
in class StructureComponent
public static StructureBoundingBox func_175814_a(java.util.List<StructureComponent> p_175814_0_, java.util.Random rand, int x, int y, int z, EnumFacing facing)
public void buildComponent(StructureComponent componentIn, java.util.List<StructureComponent> listIn, java.util.Random rand)
StructureComponent
buildComponent
in class StructureComponent
protected boolean generateChestContents(World worldIn, StructureBoundingBox boundingBoxIn, java.util.Random rand, int x, int y, int z, java.util.List<WeightedRandomChestContent> listIn, int max)
generateChestContents
in class StructureComponent
public boolean addComponentParts(World worldIn, java.util.Random randomIn, StructureBoundingBox structureBoundingBoxIn)
StructureComponent
addComponentParts
in class StructureComponent