use of pl.plajer.villagedefense3.creatures.v1_9_R1.WorkingWolf in project Village_Defense by Plajer.
the class ArenaInitializer1_12_R1 method spawnWolf.
public void spawnWolf(Location location, Player player) {
net.minecraft.server.v1_12_R1.World McWorld = ((CraftWorld) location.getWorld()).getHandle();
WorkingWolf wolf = new WorkingWolf(location.getWorld());
wolf.setPosition(location.getX(), location.getY(), location.getZ());
McWorld.addEntity(wolf, CreatureSpawnEvent.SpawnReason.CUSTOM);
wolf.setCustomName(ChatManager.colorMessage("In-Game.Spawned-Wolf-Name").replaceAll("%player%", player.getName()));
wolf.setCustomNameVisible(true);
wolf.setInvisible(false);
((Wolf) wolf.getBukkitEntity()).setOwner(player);
CreatureUtils.applyMetadata(wolf.getBukkitEntity(), this);
this.addWolf((Wolf) wolf.getBukkitEntity());
}
use of pl.plajer.villagedefense3.creatures.v1_9_R1.WorkingWolf in project Village_Defense by Plajer.
the class ArenaInitializer1_11_R1 method spawnWolf.
public void spawnWolf(Location location, Player player) {
net.minecraft.server.v1_11_R1.World McWorld = ((CraftWorld) location.getWorld()).getHandle();
WorkingWolf wolf = new WorkingWolf(location.getWorld());
wolf.setPosition(location.getX(), location.getY(), location.getZ());
McWorld.addEntity(wolf, CreatureSpawnEvent.SpawnReason.CUSTOM);
wolf.setCustomName(ChatManager.colorMessage("In-Game.Spawned-Wolf-Name").replaceAll("%player%", player.getName()));
wolf.setCustomNameVisible(true);
wolf.setInvisible(false);
((Wolf) wolf.getBukkitEntity()).setOwner(player);
CreatureUtils.applyMetadata(wolf.getBukkitEntity(), this);
this.addWolf((Wolf) wolf.getBukkitEntity());
}
use of pl.plajer.villagedefense3.creatures.v1_9_R1.WorkingWolf in project Village_Defense by Plajer.
the class ArenaInitializer1_8_R3 method spawnWolf.
public void spawnWolf(Location location, Player player) {
net.minecraft.server.v1_8_R3.World McWorld = ((CraftWorld) location.getWorld()).getHandle();
WorkingWolf wolf = new WorkingWolf(location.getWorld());
wolf.setPosition(location.getX(), location.getY(), location.getZ());
McWorld.addEntity(wolf, CreatureSpawnEvent.SpawnReason.CUSTOM);
wolf.setCustomName(ChatManager.colorMessage("In-Game.Spawned-Wolf-Name").replaceAll("%player%", player.getName()));
wolf.setCustomNameVisible(true);
wolf.setInvisible(false);
((Wolf) wolf.getBukkitEntity()).setOwner(player);
CreatureUtils.applyMetadata(wolf.getBukkitEntity(), this);
this.addWolf((Wolf) wolf.getBukkitEntity());
}
use of pl.plajer.villagedefense3.creatures.v1_9_R1.WorkingWolf in project Village_Defense by Plajer.
the class ArenaInitializer1_9_R1 method spawnWolf.
public void spawnWolf(Location location, Player player) {
net.minecraft.server.v1_9_R1.World McWorld = ((CraftWorld) location.getWorld()).getHandle();
WorkingWolf wolf = new WorkingWolf(location.getWorld());
wolf.setPosition(location.getX(), location.getY(), location.getZ());
McWorld.addEntity(wolf, CreatureSpawnEvent.SpawnReason.CUSTOM);
wolf.setCustomName(ChatManager.colorMessage("In-Game.Spawned-Wolf-Name").replaceAll("%player%", player.getName()));
wolf.setCustomNameVisible(true);
wolf.setInvisible(false);
CreatureUtils.applyMetadata(wolf.getBukkitEntity(), this);
this.addWolf((Wolf) wolf.getBukkitEntity());
}
Aggregations