public abstract static class VillagePieces.Village extends StructurePiece
StructurePiece.BlockSelector
Modifier and Type | Field and Description |
---|---|
protected int |
averageGroundLvl |
protected boolean |
isZombieInfested |
protected VillagePieces.Start |
startPiece |
protected VillagePieces.Type |
structureType |
boundingBox, CAVE_AIR, componentType
Modifier | Constructor and Description |
---|---|
|
Village() |
protected |
Village(VillagePieces.Start start,
int type) |
Modifier and Type | Method and Description |
---|---|
protected BlockDoor |
biomeDoor() |
protected static boolean |
canVillageGoDeeper(MutableBoundingBox structurebb) |
protected VillagerRegistry.VillagerProfession |
chooseForgeProfession(int count,
VillagerRegistry.VillagerProfession prof) |
protected int |
chooseProfession(int villagersSpawnedIn,
int currentVillagerProfession)
Deprecated.
|
protected void |
createVillageDoor(IWorld p_189927_1_,
MutableBoundingBox p_189927_2_,
java.util.Random p_189927_3_,
int p_189927_4_,
int p_189927_5_,
int p_189927_6_,
EnumFacing p_189927_7_) |
protected void |
func_202579_a(VillagePieces.Type p_202579_1_) |
protected int |
getAverageGroundLevel(IWorld worldIn,
MutableBoundingBox structurebb) |
protected IBlockState |
getBiomeSpecificBlockState(IBlockState blockstateIn) |
protected StructurePiece |
getNextComponentNN(VillagePieces.Start start,
java.util.List<StructurePiece> structureComponents,
java.util.Random rand,
int p_74891_4_,
int p_74891_5_) |
protected StructurePiece |
getNextComponentPP(VillagePieces.Start start,
java.util.List<StructurePiece> structureComponents,
java.util.Random rand,
int p_74894_4_,
int p_74894_5_) |
protected void |
placeTorch(IWorld p_189926_1_,
EnumFacing p_189926_2_,
int p_189926_3_,
int p_189926_4_,
int p_189926_5_,
MutableBoundingBox p_189926_6_) |
protected void |
readStructureFromNBT(NBTTagCompound tagCompound,
TemplateManager p_143011_2_) |
protected void |
replaceAirAndLiquidDownwards(IWorld worldIn,
IBlockState blockstateIn,
int x,
int y,
int z,
MutableBoundingBox boundingboxIn) |
protected void |
spawnVillagers(IWorld worldIn,
MutableBoundingBox structurebb,
int x,
int y,
int z,
int count) |
protected void |
writeStructureToNBT(NBTTagCompound tagCompound) |
addComponentParts, buildComponent, clearCurrentPositionBlocksUpwards, createDispenser, createStructureBaseNBT, fillWithAir, fillWithBlocks, fillWithRandomizedBlocks, findIntersecting, func_197528_a, generateChest, generateChest, generateDoor, generateMaybeBox, getBlockStateFromPos, getBoundingBox, getComponentType, getCoordBaseMode, getSkyBrightness, getXWithOffset, getYWithOffset, getZWithOffset, isLiquidInStructureBoundingBox, offset, randomlyPlaceBlock, randomlyRareFillWithBlocks, readStructureBaseNBT, setBlockState, setCoordBaseMode
protected int averageGroundLvl
protected VillagePieces.Type structureType
protected boolean isZombieInfested
protected VillagePieces.Start startPiece
public Village()
protected Village(VillagePieces.Start start, int type)
protected void writeStructureToNBT(NBTTagCompound tagCompound)
writeStructureToNBT
in class StructurePiece
protected void readStructureFromNBT(NBTTagCompound tagCompound, TemplateManager p_143011_2_)
readStructureFromNBT
in class StructurePiece
@Nullable protected StructurePiece getNextComponentNN(VillagePieces.Start start, java.util.List<StructurePiece> structureComponents, java.util.Random rand, int p_74891_4_, int p_74891_5_)
@Nullable protected StructurePiece getNextComponentPP(VillagePieces.Start start, java.util.List<StructurePiece> structureComponents, java.util.Random rand, int p_74894_4_, int p_74894_5_)
protected int getAverageGroundLevel(IWorld worldIn, MutableBoundingBox structurebb)
protected static boolean canVillageGoDeeper(MutableBoundingBox structurebb)
protected void spawnVillagers(IWorld worldIn, MutableBoundingBox structurebb, int x, int y, int z, int count)
@Deprecated protected int chooseProfession(int villagersSpawnedIn, int currentVillagerProfession)
protected VillagerRegistry.VillagerProfession chooseForgeProfession(int count, VillagerRegistry.VillagerProfession prof)
protected IBlockState getBiomeSpecificBlockState(IBlockState blockstateIn)
protected BlockDoor biomeDoor()
protected void createVillageDoor(IWorld p_189927_1_, MutableBoundingBox p_189927_2_, java.util.Random p_189927_3_, int p_189927_4_, int p_189927_5_, int p_189927_6_, EnumFacing p_189927_7_)
protected void placeTorch(IWorld p_189926_1_, EnumFacing p_189926_2_, int p_189926_3_, int p_189926_4_, int p_189926_5_, MutableBoundingBox p_189926_6_)
protected void replaceAirAndLiquidDownwards(IWorld worldIn, IBlockState blockstateIn, int x, int y, int z, MutableBoundingBox boundingboxIn)
replaceAirAndLiquidDownwards
in class StructurePiece
protected void func_202579_a(VillagePieces.Type p_202579_1_)