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