use of pl.plajer.villagedefense3.creatures.v1_9_R1.BabyZombie in project Village_Defense by Plajer.
the class ArenaInitializer1_12_R1 method spawnBabyZombie.
public void spawnBabyZombie(Random random) {
Location location = zombieSpawns.get(random.nextInt(zombieSpawns.size()));
net.minecraft.server.v1_12_R1.World McWorld = ((CraftWorld) location.getWorld()).getHandle();
BabyZombie fastZombie = new BabyZombie(location.getWorld());
fastZombie.setPosition(location.getX(), location.getY(), location.getZ());
Zombie zombie = (Zombie) fastZombie.getBukkitEntity();
CreatureUtils.applyHealthBar(zombie);
zombie.setRemoveWhenFarAway(false);
McWorld.addEntity(fastZombie, CreatureSpawnEvent.SpawnReason.CUSTOM);
this.addZombie((Zombie) fastZombie.getBukkitEntity());
CreatureUtils.applyMetadata(fastZombie.getBukkitEntity(), this);
super.subtractZombiesToSpawn();
}
use of pl.plajer.villagedefense3.creatures.v1_9_R1.BabyZombie in project Village_Defense by Plajer.
the class ArenaInitializer1_8_R3 method spawnBabyZombie.
public void spawnBabyZombie(Random random) {
Location location = zombieSpawns.get(random.nextInt(zombieSpawns.size() - 1));
net.minecraft.server.v1_8_R3.World McWorld = ((CraftWorld) location.getWorld()).getHandle();
BabyZombie fastZombie = new BabyZombie(location.getWorld());
fastZombie.setPosition(location.getX(), location.getY(), location.getZ());
Zombie zombie = (Zombie) fastZombie.getBukkitEntity();
CreatureUtils.applyHealthBar(zombie);
zombie.setRemoveWhenFarAway(false);
McWorld.addEntity(fastZombie, CreatureSpawnEvent.SpawnReason.CUSTOM);
this.addZombie((Zombie) fastZombie.getBukkitEntity());
CreatureUtils.applyMetadata(fastZombie.getBukkitEntity(), this);
super.subtractZombiesToSpawn();
}
use of pl.plajer.villagedefense3.creatures.v1_9_R1.BabyZombie in project Village_Defense by Plajer.
the class ArenaInitializer1_9_R1 method spawnBabyZombie.
public void spawnBabyZombie(Random random) {
Location location = zombieSpawns.get(random.nextInt(zombieSpawns.size() - 1));
net.minecraft.server.v1_9_R1.World McWorld = ((CraftWorld) location.getWorld()).getHandle();
BabyZombie fastZombie = new BabyZombie(location.getWorld());
fastZombie.setPosition(location.getX(), location.getY(), location.getZ());
Zombie zombie = (Zombie) fastZombie.getBukkitEntity();
CreatureUtils.applyHealthBar(zombie);
zombie.setRemoveWhenFarAway(false);
McWorld.addEntity(fastZombie, CreatureSpawnEvent.SpawnReason.CUSTOM);
this.addZombie((Zombie) fastZombie.getBukkitEntity());
CreatureUtils.applyMetadata(fastZombie.getBukkitEntity(), this);
super.subtractZombiesToSpawn();
}
use of pl.plajer.villagedefense3.creatures.v1_9_R1.BabyZombie in project Village_Defense by Plajer.
the class ArenaInitializer1_11_R1 method spawnBabyZombie.
public void spawnBabyZombie(Random random) {
Location location = zombieSpawns.get(random.nextInt(zombieSpawns.size()));
net.minecraft.server.v1_11_R1.World McWorld = ((CraftWorld) location.getWorld()).getHandle();
BabyZombie fastZombie = new BabyZombie(location.getWorld());
fastZombie.setPosition(location.getX(), location.getY(), location.getZ());
Zombie zombie = (Zombie) fastZombie.getBukkitEntity();
CreatureUtils.applyHealthBar(zombie);
zombie.setRemoveWhenFarAway(false);
McWorld.addEntity(fastZombie, CreatureSpawnEvent.SpawnReason.CUSTOM);
this.addZombie((Zombie) fastZombie.getBukkitEntity());
CreatureUtils.applyMetadata(fastZombie.getBukkitEntity(), this);
super.subtractZombiesToSpawn();
}
Aggregations