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