Java 类net.minecraft.world.biome.BiomeEndDecorator 实例源码
项目:Backmemed
文件:DragonFightManager.java
private void findAliveCrystals()
{
this.ticksSinceCrystalsScanned = 0;
this.aliveCrystals = 0;
for (WorldGenSpikes.EndSpike worldgenspikes$endspike : BiomeEndDecorator.getSpikesForWorld(this.world))
{
this.aliveCrystals += this.world.getEntitiesWithinAABB(EntityEnderCrystal.class, worldgenspikes$endspike.getTopBoundingBox()).size();
}
LOGGER.debug("Found {} end crystals still alive", new Object[] {Integer.valueOf(this.aliveCrystals)});
}
项目:Backmemed
文件:DragonFightManager.java
public void resetSpikeCrystals()
{
for (WorldGenSpikes.EndSpike worldgenspikes$endspike : BiomeEndDecorator.getSpikesForWorld(this.world))
{
for (EntityEnderCrystal entityendercrystal : this.world.getEntitiesWithinAABB(EntityEnderCrystal.class, worldgenspikes$endspike.getTopBoundingBox()))
{
entityendercrystal.setEntityInvulnerable(false);
entityendercrystal.setBeamTarget((BlockPos)null);
}
}
}
项目:CustomWorldGen
文件:DragonFightManager.java
private void findAliveCrystals()
{
this.ticksSinceCrystalsScanned = 0;
this.aliveCrystals = 0;
for (WorldGenSpikes.EndSpike worldgenspikes$endspike : BiomeEndDecorator.getSpikesForWorld(this.world))
{
this.aliveCrystals += this.world.getEntitiesWithinAABB(EntityEnderCrystal.class, worldgenspikes$endspike.getTopBoundingBox()).size();
}
LOGGER.debug("Found {} end crystals still alive", new Object[] {Integer.valueOf(this.aliveCrystals)});
}
项目:CustomWorldGen
文件:DragonFightManager.java
public void resetSpikeCrystals()
{
for (WorldGenSpikes.EndSpike worldgenspikes$endspike : BiomeEndDecorator.getSpikesForWorld(this.world))
{
for (EntityEnderCrystal entityendercrystal : this.world.getEntitiesWithinAABB(EntityEnderCrystal.class, worldgenspikes$endspike.getTopBoundingBox()))
{
entityendercrystal.setEntityInvulnerable(false);
entityendercrystal.setBeamTarget((BlockPos)null);
}
}
}
项目:YUNoMakeGoodMap
文件:WorldProviderEndVoid.java
@Override public void populate(int x, int z)
{
if (YUNoMakeGoodMap.instance.shouldBeVoid(world))
{
WorldGenSpikes.EndSpike[] aworldgenspikes$endspike = BiomeEndDecorator.getSpikesForWorld(world);
for (WorldGenSpikes.EndSpike worldgenspikes$endspike : aworldgenspikes$endspike)
{
if (worldgenspikes$endspike.doesStartInChunk(new BlockPos(x*16, 0, z*16)))
{
this.spikes.setSpike(worldgenspikes$endspike);
this.spikes.generate(world, endRNG, new BlockPos(worldgenspikes$endspike.getCenterX(), 45, worldgenspikes$endspike.getCenterZ()));
}
}
}
if (YUNoMakeGoodMap.instance.shouldGenerateEndCities(this.world))
{
this.endCityGen.generateStructure(world, endRNG, new ChunkPos(x, z));
}
if (x == 0 && z == 0)
{
// Allows exit portal to be placed correctly. DragonFightManager will take over from here...
world.setBlockState(new BlockPos(0, 45, 0), Blocks.END_STONE.getDefaultState());
}
}
项目:RuneCraftery
文件:BiomeGenEnd.java
public BiomeGenEnd(int p_i1990_1_) {
super(p_i1990_1_);
this.field_76761_J.clear();
this.field_76762_K.clear();
this.field_76755_L.clear();
this.field_82914_M.clear();
this.field_76761_J.add(new SpawnListEntry(EntityEnderman.class, 10, 4, 4));
this.field_76752_A = (byte)Block.field_71979_v.field_71990_ca;
this.field_76753_B = (byte)Block.field_71979_v.field_71990_ca;
this.field_76760_I = new BiomeEndDecorator(this);
}