Search in sources :

Example 1 with RidableIronGolem

use of pl.plajer.villagedefense3.creatures.v1_9_R1.RidableIronGolem in project Village_Defense by Plajer.

the class ArenaInitializer1_12_R1 method spawnGolem.

public void spawnGolem(Location location, Player player) {
    net.minecraft.server.v1_12_R1.World McWorld = ((CraftWorld) location.getWorld()).getHandle();
    RidableIronGolem ironGolem = new RidableIronGolem(location.getWorld());
    ironGolem.setPosition(location.getX(), location.getY(), location.getZ());
    ironGolem.setCustomName(ChatManager.colorMessage("In-Game.Spawned-Golem-Name").replaceAll("%player%", player.getName()));
    ironGolem.setCustomNameVisible(true);
    McWorld.addEntity(ironGolem, CreatureSpawnEvent.SpawnReason.CUSTOM);
    CreatureUtils.applyMetadata(ironGolem.getBukkitEntity(), this);
    this.addIronGolem((org.bukkit.entity.IronGolem) ironGolem.getBukkitEntity());
}
Also used : RidableIronGolem(pl.plajer.villagedefense3.creatures.v1_12_R1.RidableIronGolem) CraftWorld(org.bukkit.craftbukkit.v1_12_R1.CraftWorld)

Example 2 with RidableIronGolem

use of pl.plajer.villagedefense3.creatures.v1_9_R1.RidableIronGolem in project Village_Defense by Plajer.

the class ArenaInitializer1_8_R3 method spawnGolem.

public void spawnGolem(Location location, Player player) {
    net.minecraft.server.v1_8_R3.World McWorld = ((CraftWorld) location.getWorld()).getHandle();
    RidableIronGolem ironGolem = new RidableIronGolem(location.getWorld());
    ironGolem.setPosition(location.getX(), location.getY(), location.getZ());
    ironGolem.setCustomName(ChatManager.colorMessage("In-Game.Spawned-Golem-Name").replaceAll("%player%", player.getName()));
    ironGolem.setCustomNameVisible(true);
    McWorld.addEntity(ironGolem, CreatureSpawnEvent.SpawnReason.CUSTOM);
    this.addIronGolem((org.bukkit.entity.IronGolem) ironGolem.getBukkitEntity());
    CreatureUtils.applyMetadata(ironGolem.getBukkitEntity(), this);
}
Also used : RidableIronGolem(pl.plajer.villagedefense3.creatures.v1_8_R3.RidableIronGolem) CraftWorld(org.bukkit.craftbukkit.v1_8_R3.CraftWorld)

Example 3 with RidableIronGolem

use of pl.plajer.villagedefense3.creatures.v1_9_R1.RidableIronGolem in project Village_Defense by Plajer.

the class ArenaInitializer1_9_R1 method spawnGolem.

public void spawnGolem(Location location, Player player) {
    net.minecraft.server.v1_9_R1.World McWorld = ((CraftWorld) location.getWorld()).getHandle();
    RidableIronGolem ironGolem = new RidableIronGolem(location.getWorld());
    ironGolem.setPosition(location.getX(), location.getY(), location.getZ());
    ironGolem.setCustomName(ChatManager.colorMessage("In-Game.Spawned-Golem-Name").replaceAll("%player%", player.getName()));
    ironGolem.setCustomNameVisible(true);
    McWorld.addEntity(ironGolem, CreatureSpawnEvent.SpawnReason.CUSTOM);
    this.addIronGolem((org.bukkit.entity.IronGolem) ironGolem.getBukkitEntity());
    CreatureUtils.applyMetadata(ironGolem.getBukkitEntity(), this);
}
Also used : RidableIronGolem(pl.plajer.villagedefense3.creatures.v1_9_R1.RidableIronGolem) CraftWorld(org.bukkit.craftbukkit.v1_9_R1.CraftWorld)

Example 4 with RidableIronGolem

use of pl.plajer.villagedefense3.creatures.v1_9_R1.RidableIronGolem in project Village_Defense by Plajer.

the class ArenaInitializer1_11_R1 method spawnGolem.

public void spawnGolem(Location location, Player player) {
    net.minecraft.server.v1_11_R1.World McWorld = ((CraftWorld) location.getWorld()).getHandle();
    RidableIronGolem ironGolem = new RidableIronGolem(location.getWorld());
    ironGolem.setPosition(location.getX(), location.getY(), location.getZ());
    ironGolem.setCustomName(ChatManager.colorMessage("In-Game.Spawned-Golem-Name").replaceAll("%player%", player.getName()));
    ironGolem.setCustomNameVisible(true);
    McWorld.addEntity(ironGolem, CreatureSpawnEvent.SpawnReason.CUSTOM);
    this.addIronGolem((org.bukkit.entity.IronGolem) ironGolem.getBukkitEntity());
    CreatureUtils.applyMetadata(ironGolem.getBukkitEntity(), this);
}
Also used : RidableIronGolem(pl.plajer.villagedefense3.creatures.v1_11_R1.RidableIronGolem) CraftWorld(org.bukkit.craftbukkit.v1_11_R1.CraftWorld)

Aggregations

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 RidableIronGolem (pl.plajer.villagedefense3.creatures.v1_11_R1.RidableIronGolem)1 RidableIronGolem (pl.plajer.villagedefense3.creatures.v1_12_R1.RidableIronGolem)1 RidableIronGolem (pl.plajer.villagedefense3.creatures.v1_8_R3.RidableIronGolem)1 RidableIronGolem (pl.plajer.villagedefense3.creatures.v1_9_R1.RidableIronGolem)1