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)}); }
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); } } }
@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()); } }
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); }