abstract static class StructureVillagePieces.Village extends StructureComponent
StructureComponent.BlockSelector
Modifier and Type | Field and Description |
---|---|
protected int |
field_143015_k |
private boolean |
isDesertVillage |
private int |
villagersSpawned |
boundingBox, componentType, coordBaseMode
Modifier | Constructor and Description |
---|---|
|
Village() |
protected |
Village(StructureVillagePieces.Start start,
int type) |
Modifier and Type | Method and Description |
---|---|
protected static boolean |
canVillageGoDeeper(StructureBoundingBox p_74895_0_) |
protected void |
fillWithBlocks(World worldIn,
StructureBoundingBox boundingboxIn,
int xMin,
int yMin,
int zMin,
int xMax,
int yMax,
int zMax,
IBlockState boundaryBlockState,
IBlockState insideBlockState,
boolean existingOnly)
Fill the given area with the selected blocks
|
protected void |
func_175846_a(boolean p_175846_1_) |
protected IBlockState |
func_175847_a(IBlockState p_175847_1_) |
protected int |
func_180779_c(int p_180779_1_,
int p_180779_2_) |
protected int |
getAverageGroundLevel(World worldIn,
StructureBoundingBox p_74889_2_) |
protected StructureComponent |
getNextComponentNN(StructureVillagePieces.Start start,
java.util.List<StructureComponent> p_74891_2_,
java.util.Random rand,
int p_74891_4_,
int p_74891_5_) |
protected StructureComponent |
getNextComponentPP(StructureVillagePieces.Start start,
java.util.List<StructureComponent> p_74894_2_,
java.util.Random rand,
int p_74894_4_,
int p_74894_5_) |
protected void |
readStructureFromNBT(NBTTagCompound tagCompound)
(abstract) Helper method to read subclass data from NBT
|
protected void |
replaceAirAndLiquidDownwards(World worldIn,
IBlockState blockstateIn,
int x,
int y,
int z,
StructureBoundingBox boundingboxIn)
Replaces air and liquid from given position downwards.
|
protected void |
setBlockState(World worldIn,
IBlockState blockstateIn,
int x,
int y,
int z,
StructureBoundingBox boundingboxIn) |
protected void |
spawnVillagers(World worldIn,
StructureBoundingBox p_74893_2_,
int p_74893_3_,
int p_74893_4_,
int p_74893_5_,
int p_74893_6_) |
protected void |
writeStructureToNBT(NBTTagCompound tagCompound)
(abstract) Helper method to write subclass data to NBT
|
addComponentParts, buildComponent, clearCurrentPositionBlocksUpwards, createStructureBaseNBT, fillWithAir, fillWithRandomizedBlocks, findIntersecting, func_175805_a, func_181138_a, generateChestContents, generateDispenserContents, getBlockStateFromPos, getBoundingBox, getBoundingBoxCenter, getComponentType, getMetadataWithOffset, getXWithOffset, getYWithOffset, getZWithOffset, isLiquidInStructureBoundingBox, placeDoorCurrentPosition, randomlyPlaceBlock, randomlyRareFillWithBlocks, readStructureBaseNBT
protected int field_143015_k
private int villagersSpawned
private boolean isDesertVillage
public Village()
protected Village(StructureVillagePieces.Start start, int type)
protected void writeStructureToNBT(NBTTagCompound tagCompound)
StructureComponent
writeStructureToNBT
in class StructureComponent
protected void readStructureFromNBT(NBTTagCompound tagCompound)
StructureComponent
readStructureFromNBT
in class StructureComponent
protected StructureComponent getNextComponentNN(StructureVillagePieces.Start start, java.util.List<StructureComponent> p_74891_2_, java.util.Random rand, int p_74891_4_, int p_74891_5_)
protected StructureComponent getNextComponentPP(StructureVillagePieces.Start start, java.util.List<StructureComponent> p_74894_2_, java.util.Random rand, int p_74894_4_, int p_74894_5_)
protected int getAverageGroundLevel(World worldIn, StructureBoundingBox p_74889_2_)
protected static boolean canVillageGoDeeper(StructureBoundingBox p_74895_0_)
protected void spawnVillagers(World worldIn, StructureBoundingBox p_74893_2_, int p_74893_3_, int p_74893_4_, int p_74893_5_, int p_74893_6_)
protected int func_180779_c(int p_180779_1_, int p_180779_2_)
protected IBlockState func_175847_a(IBlockState p_175847_1_)
protected void setBlockState(World worldIn, IBlockState blockstateIn, int x, int y, int z, StructureBoundingBox boundingboxIn)
setBlockState
in class StructureComponent
protected void fillWithBlocks(World worldIn, StructureBoundingBox boundingboxIn, int xMin, int yMin, int zMin, int xMax, int yMax, int zMax, IBlockState boundaryBlockState, IBlockState insideBlockState, boolean existingOnly)
StructureComponent
fillWithBlocks
in class StructureComponent
protected void replaceAirAndLiquidDownwards(World worldIn, IBlockState blockstateIn, int x, int y, int z, StructureBoundingBox boundingboxIn)
StructureComponent
replaceAirAndLiquidDownwards
in class StructureComponent
protected void func_175846_a(boolean p_175846_1_)