use of pl.plajer.villagedefense3.creatures.v1_12_R1.RidableVillager in project Village_Defense by Plajer.
the class ArenaInitializer1_12_R1 method spawnVillager.
public void spawnVillager(Location location) {
net.minecraft.server.v1_12_R1.World McWorld = ((CraftWorld) location.getWorld()).getHandle();
RidableVillager ridableVillager = new RidableVillager(location.getWorld());
ridableVillager.setPosition(location.getX(), location.getY(), location.getZ());
McWorld.addEntity(ridableVillager, CreatureSpawnEvent.SpawnReason.CUSTOM);
Villager villager = (Villager) ridableVillager.getBukkitEntity();
villager.setRemoveWhenFarAway(false);
this.addVillager((Villager) ridableVillager.getBukkitEntity());
CreatureUtils.applyMetadata(ridableVillager.getBukkitEntity(), this);
}
use of pl.plajer.villagedefense3.creatures.v1_12_R1.RidableVillager in project Village_Defense by Plajer.
the class ArenaInitializer1_11_R1 method spawnVillager.
public void spawnVillager(Location location) {
net.minecraft.server.v1_11_R1.World McWorld = ((CraftWorld) location.getWorld()).getHandle();
RidableVillager ridableVillager = new RidableVillager(location.getWorld());
ridableVillager.setPosition(location.getX(), location.getY(), location.getZ());
McWorld.addEntity(ridableVillager, CreatureSpawnEvent.SpawnReason.CUSTOM);
Villager villager = (Villager) ridableVillager.getBukkitEntity();
villager.setRemoveWhenFarAway(false);
this.addVillager((Villager) ridableVillager.getBukkitEntity());
CreatureUtils.applyMetadata(ridableVillager.getBukkitEntity(), this);
}
use of pl.plajer.villagedefense3.creatures.v1_12_R1.RidableVillager in project Village_Defense by Plajer.
the class ArenaInitializer1_8_R3 method spawnVillager.
public void spawnVillager(Location location) {
net.minecraft.server.v1_8_R3.World McWorld = ((CraftWorld) location.getWorld()).getHandle();
RidableVillager ridableVillager = new RidableVillager(location.getWorld());
ridableVillager.setPosition(location.getX(), location.getY(), location.getZ());
McWorld.addEntity(ridableVillager, CreatureSpawnEvent.SpawnReason.CUSTOM);
Villager villager = (Villager) ridableVillager.getBukkitEntity();
villager.setRemoveWhenFarAway(false);
this.addVillager((Villager) ridableVillager.getBukkitEntity());
CreatureUtils.applyMetadata(villager, this);
}
use of pl.plajer.villagedefense3.creatures.v1_12_R1.RidableVillager in project Village_Defense by Plajer.
the class ArenaInitializer1_9_R1 method spawnVillager.
public void spawnVillager(Location location) {
net.minecraft.server.v1_9_R1.World McWorld = ((CraftWorld) location.getWorld()).getHandle();
RidableVillager ridableVillager = new RidableVillager(location.getWorld());
ridableVillager.setPosition(location.getX(), location.getY(), location.getZ());
McWorld.addEntity(ridableVillager, CreatureSpawnEvent.SpawnReason.CUSTOM);
Villager villager = (Villager) ridableVillager.getBukkitEntity();
villager.setRemoveWhenFarAway(false);
this.addVillager((Villager) ridableVillager.getBukkitEntity());
CreatureUtils.applyMetadata(ridableVillager.getBukkitEntity(), this);
}
Aggregations