public Start(WorldChunkManager par1WorldChunkManager, int par2, Random par3Random, int par4, int par5, List par6List, int par7)
{
super((StructureVillagePieces.Start)null, 0, par3Random, par4, par5);
this.worldChunkMngr = par1WorldChunkManager;
this.structureVillageWeightedPieceList = par6List;
this.terrainType = par7;
BiomeGenBase var8 = par1WorldChunkManager.getBiomeGenAt(par4, par5);
this.inDesert = var8 == BiomeGenBase.desert || var8 == BiomeGenBase.desertHills;
}
java类net.minecraft.world.biome.WorldChunkManager的实例源码
StructureVillagePieces.java 文件源码
项目:Resilience-Client-Source
阅读 25
收藏 0
点赞 0
评论 0
StructureComponentVenusVillageStartPiece.java 文件源码
项目:4Space-1.7
阅读 20
收藏 0
点赞 0
评论 0
public StructureComponentVenusVillageStartPiece(WorldChunkManager par1WorldChunkManager, int par2, Random par3Random, int par4, int par5, ArrayList<StructureVillagePieceWeightVenus> par6ArrayList, int par7) {
super((StructureComponentVenusVillageStartPiece) null, 0, par3Random, par4, par5);
this.worldChunkMngr = par1WorldChunkManager;
this.structureVillageWeightedPieceList = par6ArrayList;
this.terrainType = par7;
this.startPiece = this;
}
VCraftWorld.java 文件源码
项目:vintagecraft
阅读 23
收藏 0
点赞 0
评论 0
public VCraftWorld(long seed, WorldChunkManager wcm) {
this.seed = seed;
this.wcm = (ClimateGenWorldChunkManager)wcm;
grassspeckle = new PseudoNumberGen(1);
grassspeckle.initWorldGenSeed(seed);
}
WorldTypeVC.java 文件源码
项目:vintagecraft
阅读 28
收藏 0
点赞 0
评论 0
@Override
public WorldChunkManager getChunkManager(World world) {
if (this == FLAT) {
return new WorldChunkManagerFlatVC(world);
}
return new WorldChunkManagerVC(world);
}
WorldChunkManagerIG.java 文件源码
项目:IgnitionUtilities
阅读 36
收藏 0
点赞 0
评论 0
public WorldChunkManagerIG(World world)
{
super();
GenLayer[] agenlayer = GenLayerBiomeIG.initializeAllBiomeGenerators(world.getSeed(), world.getWorldInfo().getTerrainType());
agenlayer = getModdedBiomeGenerators(world.getWorldInfo().getTerrainType(), world.getSeed(), agenlayer);
ObfuscationReflectionHelper.setPrivateValue(WorldChunkManager.class, this, agenlayer[0], "genBiomes", "field_76944_d");
ObfuscationReflectionHelper.setPrivateValue(WorldChunkManager.class, this, agenlayer[1], "biomeIndexLayer", "field_76945_e");
}
BiomeManager.java 文件源码
项目:Cauldron
阅读 29
收藏 0
点赞 0
评论 0
public static void addSpawnBiome(BiomeGenBase biome)
{
if (!WorldChunkManager.allowedBiomes.contains(biome))
{
WorldChunkManager.allowedBiomes.add(biome);
}
}
BiomeManager.java 文件源码
项目:Cauldron
阅读 34
收藏 0
点赞 0
评论 0
public static void removeSpawnBiome(BiomeGenBase biome)
{
if (WorldChunkManager.allowedBiomes.contains(biome))
{
WorldChunkManager.allowedBiomes.remove(biome);
}
}
BiomeManager.java 文件源码
项目:Cauldron
阅读 26
收藏 0
点赞 0
评论 0
public static void addSpawnBiome(BiomeGenBase biome)
{
if (!WorldChunkManager.allowedBiomes.contains(biome))
{
WorldChunkManager.allowedBiomes.add(biome);
}
}
BiomeManager.java 文件源码
项目:Cauldron
阅读 26
收藏 0
点赞 0
评论 0
public static void removeSpawnBiome(BiomeGenBase biome)
{
if (WorldChunkManager.allowedBiomes.contains(biome))
{
WorldChunkManager.allowedBiomes.remove(biome);
}
}
Chunk.java 文件源码
项目:Cauldron
阅读 26
收藏 0
点赞 0
评论 0
public BiomeGenBase getBiomeGenForWorldCoords(int p_76591_1_, int p_76591_2_, WorldChunkManager p_76591_3_)
{
int k = this.blockBiomeArray[p_76591_2_ << 4 | p_76591_1_] & 255;
if (k == 255)
{
BiomeGenBase biomegenbase = p_76591_3_.getBiomeGenAt((this.xPosition << 4) + p_76591_1_, (this.zPosition << 4) + p_76591_2_);
k = biomegenbase.biomeID;
this.blockBiomeArray[p_76591_2_ << 4 | p_76591_1_] = (byte)(k & 255);
}
return BiomeGenBase.getBiome(k) == null ? BiomeGenBase.plains : BiomeGenBase.getBiome(k);
}