use of pl.plajer.villagedefense3.creatures.v1_9_R1.FastZombie in project Village_Defense by Plajer.
the class ArenaInitializer1_8_R3 method spawnSoftHardZombie.
@Override
public void spawnSoftHardZombie(Random random) {
Location location = zombieSpawns.get(random.nextInt(zombieSpawns.size() - 1));
net.minecraft.server.v1_8_R3.World McWorld = ((CraftWorld) location.getWorld()).getHandle();
HardZombie fastZombie = new HardZombie(location.getWorld());
fastZombie.setPosition(location.getX(), location.getY(), location.getZ());
McWorld.addEntity(fastZombie, CreatureSpawnEvent.SpawnReason.CUSTOM);
Zombie zombie = (Zombie) fastZombie.getBukkitEntity();
zombie.getEquipment().setBoots(new ItemStack(Material.IRON_BOOTS));
zombie.getEquipment().setLeggings(new ItemStack(Material.IRON_LEGGINGS));
zombie.getEquipment().setChestplate(new ItemStack(Material.IRON_CHESTPLATE));
zombie.getEquipment().setHelmet(new ItemStack(Material.IRON_HELMET));
zombie.setRemoveWhenFarAway(false);
CreatureUtils.applyHealthBar(zombie);
this.addZombie(zombie);
CreatureUtils.applyMetadata(fastZombie.getBukkitEntity(), this);
super.subtractZombiesToSpawn();
}
use of pl.plajer.villagedefense3.creatures.v1_9_R1.FastZombie in project Village_Defense by Plajer.
the class ArenaInitializer1_8_R3 method spawnKnockbackResistantZombies.
@Override
public void spawnKnockbackResistantZombies(Random random) {
Location location = zombieSpawns.get(random.nextInt(zombieSpawns.size() - 1));
net.minecraft.server.v1_8_R3.World McWorld = ((CraftWorld) location.getWorld()).getHandle();
TankerZombie fastZombie = new TankerZombie(location.getWorld());
fastZombie.getAttributeInstance(GenericAttributes.c).setValue(Double.MAX_VALUE);
fastZombie.setPosition(location.getX(), location.getY(), location.getZ());
McWorld.addEntity(fastZombie, CreatureSpawnEvent.SpawnReason.CUSTOM);
Zombie zombie = (Zombie) fastZombie.getBukkitEntity();
zombie.getEquipment().setItemInHand(new ItemStack(Material.GOLD_AXE));
zombie.getEquipment().setBoots(new ItemStack(Material.DIAMOND_BOOTS));
zombie.getEquipment().setLeggings(new ItemStack(Material.DIAMOND_LEGGINGS));
zombie.getEquipment().setChestplate(new ItemStack(Material.DIAMOND_CHESTPLATE));
zombie.getEquipment().setHelmet(new ItemStack(Material.DIAMOND_HELMET));
zombie.setRemoveWhenFarAway(false);
CreatureUtils.applyHealthBar(zombie);
this.addZombie((Zombie) fastZombie.getBukkitEntity());
CreatureUtils.applyMetadata(fastZombie.getBukkitEntity(), this);
super.subtractZombiesToSpawn();
}
use of pl.plajer.villagedefense3.creatures.v1_9_R1.FastZombie in project Village_Defense by Plajer.
the class ArenaInitializer1_8_R3 method spawnHalfInvisibleZombie.
@Override
public void spawnHalfInvisibleZombie(Random random) {
Location location = zombieSpawns.get(random.nextInt(zombieSpawns.size() - 1));
net.minecraft.server.v1_8_R3.World McWorld = ((CraftWorld) location.getWorld()).getHandle();
FastZombie fastZombie = new FastZombie(location.getWorld());
fastZombie.setPosition(location.getX(), location.getY(), location.getZ());
McWorld.addEntity(fastZombie, CreatureSpawnEvent.SpawnReason.CUSTOM);
Zombie zombie = (Zombie) fastZombie.getBukkitEntity();
zombie.setRemoveWhenFarAway(false);
zombie.getEquipment().setBoots(new ItemStack(Material.CHAINMAIL_BOOTS));
zombie.addPotionEffect(new PotionEffect(PotionEffectType.INVISIBILITY, Integer.MAX_VALUE, 1));
CreatureUtils.applyHealthBar(zombie);
this.addZombie((Zombie) fastZombie.getBukkitEntity());
CreatureUtils.applyMetadata(fastZombie.getBukkitEntity(), this);
super.subtractZombiesToSpawn();
}
use of pl.plajer.villagedefense3.creatures.v1_9_R1.FastZombie in project Village_Defense by Plajer.
the class ArenaInitializer1_9_R1 method spawnKnockbackResistantZombies.
@Override
public void spawnKnockbackResistantZombies(Random random) {
Location location = zombieSpawns.get(random.nextInt(zombieSpawns.size() - 1));
net.minecraft.server.v1_9_R1.World McWorld = ((CraftWorld) location.getWorld()).getHandle();
TankerZombie fastZombie = new TankerZombie(location.getWorld());
fastZombie.getAttributeInstance(GenericAttributes.c).setValue(Double.MAX_VALUE);
fastZombie.setPosition(location.getX(), location.getY(), location.getZ());
McWorld.addEntity(fastZombie, CreatureSpawnEvent.SpawnReason.CUSTOM);
Zombie zombie = (Zombie) fastZombie.getBukkitEntity();
zombie.getEquipment().setItemInHand(new ItemStack(Material.GOLD_AXE));
zombie.getEquipment().setBoots(new ItemStack(Material.DIAMOND_BOOTS));
zombie.getEquipment().setLeggings(new ItemStack(Material.DIAMOND_LEGGINGS));
zombie.getEquipment().setChestplate(new ItemStack(Material.DIAMOND_CHESTPLATE));
zombie.getEquipment().setHelmet(new ItemStack(Material.DIAMOND_HELMET));
zombie.setRemoveWhenFarAway(false);
CreatureUtils.applyHealthBar(zombie);
this.addZombie((Zombie) fastZombie.getBukkitEntity());
CreatureUtils.applyMetadata(fastZombie.getBukkitEntity(), this);
super.subtractZombiesToSpawn();
}
use of pl.plajer.villagedefense3.creatures.v1_9_R1.FastZombie in project Village_Defense by Plajer.
the class ArenaInitializer1_9_R1 method spawnPlayerBuster.
public void spawnPlayerBuster(Random random) {
Location location = zombieSpawns.get(random.nextInt(zombieSpawns.size() - 1));
net.minecraft.server.v1_9_R1.World McWorld = ((CraftWorld) location.getWorld()).getHandle();
PlayerBuster fastZombie = new PlayerBuster(location.getWorld());
fastZombie.setPosition(location.getX(), location.getY(), location.getZ());
McWorld.addEntity(fastZombie, CreatureSpawnEvent.SpawnReason.CUSTOM);
Zombie zombie = (Zombie) fastZombie.getBukkitEntity();
zombie.getEquipment().setHelmet(new ItemStack(Material.TNT));
zombie.getEquipment().setHelmetDropChance(0.0F);
zombie.getEquipment().setItemInHandDropChance(0F);
zombie.getEquipment().setBoots(new ItemStack(Material.GOLD_BOOTS));
zombie.getEquipment().setLeggings(new ItemStack(Material.GOLD_LEGGINGS));
zombie.getEquipment().setChestplate(new ItemStack(Material.GOLD_CHESTPLATE));
CreatureUtils.applyHealthBar(zombie);
this.addZombie(zombie);
CreatureUtils.applyMetadata(fastZombie.getBukkitEntity(), this);
super.subtractZombiesToSpawn();
}
Aggregations