use of org.bukkit.craftbukkit.v1_18_R2.entity.CraftBoat in project UltraCosmetics by iSach.
the class EntityUtil method moveShip.
@Override
public void moveShip(Player player, org.bukkit.entity.Entity entity, Vector vector) {
Boat ec = ((CraftBoat) entity).getHandle();
ec.getBukkitEntity().setVelocity(vector);
ec.setXRot(player.getLocation().getPitch());
ec.setYRot(player.getLocation().getYaw() - 180);
ec.move(MoverType.SELF, new Vec3(1, 0, 0));
}
use of org.bukkit.craftbukkit.v1_18_R2.entity.CraftBoat in project UltraCosmetics by iSach.
the class EntityUtil method moveShip.
@Override
public void moveShip(Player player, org.bukkit.entity.Entity entity, Vector vector) {
Boat ec = ((CraftBoat) entity).getHandle();
ec.getBukkitEntity().setVelocity(vector);
ec.setXRot(player.getLocation().getPitch());
ec.setYRot(player.getLocation().getYaw() - 180);
ec.move(MoverType.SELF, new Vec3(1, 0, 0));
}