Search in sources :

Example 1 with GolemBuster

use of pl.plajer.villagedefense3.creatures.v1_8_R3.GolemBuster in project Village_Defense by Plajer.

the class ArenaInitializer1_12_R1 method spawnGolemBuster.

public void spawnGolemBuster(Random random) {
    Location location = zombieSpawns.get(random.nextInt(zombieSpawns.size()));
    net.minecraft.server.v1_12_R1.World McWorld = ((CraftWorld) location.getWorld()).getHandle();
    GolemBuster fastZombie = new GolemBuster(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.setRemoveWhenFarAway(false);
    CreatureUtils.applyHealthBar(zombie);
    this.addZombie(zombie);
    CreatureUtils.applyMetadata(fastZombie.getBukkitEntity(), this);
    super.subtractZombiesToSpawn();
}
Also used : GolemBuster(pl.plajer.villagedefense3.creatures.v1_12_R1.GolemBuster) Zombie(org.bukkit.entity.Zombie) HardZombie(pl.plajer.villagedefense3.creatures.v1_12_R1.HardZombie) FastZombie(pl.plajer.villagedefense3.creatures.v1_12_R1.FastZombie) BabyZombie(pl.plajer.villagedefense3.creatures.v1_12_R1.BabyZombie) TankerZombie(pl.plajer.villagedefense3.creatures.v1_12_R1.TankerZombie) ItemStack(org.bukkit.inventory.ItemStack) CraftWorld(org.bukkit.craftbukkit.v1_12_R1.CraftWorld) Location(org.bukkit.Location)

Example 2 with GolemBuster

use of pl.plajer.villagedefense3.creatures.v1_8_R3.GolemBuster in project Village_Defense by Plajer.

the class ArenaInitializer1_8_R3 method spawnGolemBuster.

public void spawnGolemBuster(Random random) {
    Location location = zombieSpawns.get(random.nextInt(zombieSpawns.size() - 1));
    net.minecraft.server.v1_8_R3.World McWorld = ((CraftWorld) location.getWorld()).getHandle();
    GolemBuster fastZombie = new GolemBuster(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.setRemoveWhenFarAway(false);
    CreatureUtils.applyHealthBar(zombie);
    this.addZombie(zombie);
    CreatureUtils.applyMetadata(fastZombie.getBukkitEntity(), this);
    super.subtractZombiesToSpawn();
}
Also used : GolemBuster(pl.plajer.villagedefense3.creatures.v1_8_R3.GolemBuster) HardZombie(pl.plajer.villagedefense3.creatures.v1_8_R3.HardZombie) Zombie(org.bukkit.entity.Zombie) FastZombie(pl.plajer.villagedefense3.creatures.v1_8_R3.FastZombie) BabyZombie(pl.plajer.villagedefense3.creatures.v1_8_R3.BabyZombie) TankerZombie(pl.plajer.villagedefense3.creatures.v1_8_R3.TankerZombie) ItemStack(org.bukkit.inventory.ItemStack) CraftWorld(org.bukkit.craftbukkit.v1_8_R3.CraftWorld) Location(org.bukkit.Location)

Example 3 with GolemBuster

use of pl.plajer.villagedefense3.creatures.v1_8_R3.GolemBuster in project Village_Defense by Plajer.

the class ArenaInitializer1_9_R1 method spawnGolemBuster.

public void spawnGolemBuster(Random random) {
    Location location = zombieSpawns.get(random.nextInt(zombieSpawns.size() - 1));
    net.minecraft.server.v1_9_R1.World McWorld = ((CraftWorld) location.getWorld()).getHandle();
    GolemBuster fastZombie = new GolemBuster(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.setRemoveWhenFarAway(false);
    CreatureUtils.applyHealthBar(zombie);
    this.addZombie(zombie);
    CreatureUtils.applyMetadata(fastZombie.getBukkitEntity(), this);
    super.subtractZombiesToSpawn();
}
Also used : GolemBuster(pl.plajer.villagedefense3.creatures.v1_9_R1.GolemBuster) TankerZombie(pl.plajer.villagedefense3.creatures.v1_9_R1.TankerZombie) Zombie(org.bukkit.entity.Zombie) FastZombie(pl.plajer.villagedefense3.creatures.v1_9_R1.FastZombie) BabyZombie(pl.plajer.villagedefense3.creatures.v1_9_R1.BabyZombie) HardZombie(pl.plajer.villagedefense3.creatures.v1_9_R1.HardZombie) ItemStack(org.bukkit.inventory.ItemStack) CraftWorld(org.bukkit.craftbukkit.v1_9_R1.CraftWorld) Location(org.bukkit.Location)

Example 4 with GolemBuster

use of pl.plajer.villagedefense3.creatures.v1_8_R3.GolemBuster in project Village_Defense by Plajer.

the class ArenaInitializer1_11_R1 method spawnGolemBuster.

public void spawnGolemBuster(Random random) {
    Location location = zombieSpawns.get(random.nextInt(zombieSpawns.size()));
    net.minecraft.server.v1_11_R1.World McWorld = ((CraftWorld) location.getWorld()).getHandle();
    GolemBuster fastZombie = new GolemBuster(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.setRemoveWhenFarAway(false);
    CreatureUtils.applyHealthBar(zombie);
    this.addZombie(zombie);
    CreatureUtils.applyMetadata(fastZombie.getBukkitEntity(), this);
    super.subtractZombiesToSpawn();
}
Also used : GolemBuster(pl.plajer.villagedefense3.creatures.v1_11_R1.GolemBuster) Zombie(org.bukkit.entity.Zombie) TankerZombie(pl.plajer.villagedefense3.creatures.v1_11_R1.TankerZombie) HardZombie(pl.plajer.villagedefense3.creatures.v1_11_R1.HardZombie) BabyZombie(pl.plajer.villagedefense3.creatures.v1_11_R1.BabyZombie) FastZombie(pl.plajer.villagedefense3.creatures.v1_11_R1.FastZombie) ItemStack(org.bukkit.inventory.ItemStack) CraftWorld(org.bukkit.craftbukkit.v1_11_R1.CraftWorld) Location(org.bukkit.Location)

Aggregations

Location (org.bukkit.Location)4 Zombie (org.bukkit.entity.Zombie)4 ItemStack (org.bukkit.inventory.ItemStack)4 CraftWorld (org.bukkit.craftbukkit.v1_11_R1.CraftWorld)1 CraftWorld (org.bukkit.craftbukkit.v1_12_R1.CraftWorld)1 CraftWorld (org.bukkit.craftbukkit.v1_8_R3.CraftWorld)1 CraftWorld (org.bukkit.craftbukkit.v1_9_R1.CraftWorld)1 BabyZombie (pl.plajer.villagedefense3.creatures.v1_11_R1.BabyZombie)1 FastZombie (pl.plajer.villagedefense3.creatures.v1_11_R1.FastZombie)1 GolemBuster (pl.plajer.villagedefense3.creatures.v1_11_R1.GolemBuster)1 HardZombie (pl.plajer.villagedefense3.creatures.v1_11_R1.HardZombie)1 TankerZombie (pl.plajer.villagedefense3.creatures.v1_11_R1.TankerZombie)1 BabyZombie (pl.plajer.villagedefense3.creatures.v1_12_R1.BabyZombie)1 FastZombie (pl.plajer.villagedefense3.creatures.v1_12_R1.FastZombie)1 GolemBuster (pl.plajer.villagedefense3.creatures.v1_12_R1.GolemBuster)1 HardZombie (pl.plajer.villagedefense3.creatures.v1_12_R1.HardZombie)1 TankerZombie (pl.plajer.villagedefense3.creatures.v1_12_R1.TankerZombie)1 BabyZombie (pl.plajer.villagedefense3.creatures.v1_8_R3.BabyZombie)1 FastZombie (pl.plajer.villagedefense3.creatures.v1_8_R3.FastZombie)1 GolemBuster (pl.plajer.villagedefense3.creatures.v1_8_R3.GolemBuster)1