Search in sources :

Example 1 with EntityItemProjectile_v1_9_R2

use of net.aufdemrand.denizen.nms.impl.entities.EntityItemProjectile_v1_9_R2 in project Denizen-For-Bukkit by DenizenScript.

the class CustomEntityHelper_v1_9_R2 method spawnItemProjectile.

@Override
public ItemProjectile spawnItemProjectile(Location location, ItemStack itemStack) {
    CraftWorld world = (CraftWorld) location.getWorld();
    EntityItemProjectile_v1_9_R2 entity = new EntityItemProjectile_v1_9_R2(world, location, itemStack);
    return entity.getBukkitEntity();
}
Also used : EntityItemProjectile_v1_9_R2(net.aufdemrand.denizen.nms.impl.entities.EntityItemProjectile_v1_9_R2) CraftWorld(org.bukkit.craftbukkit.v1_9_R2.CraftWorld)

Aggregations

EntityItemProjectile_v1_9_R2 (net.aufdemrand.denizen.nms.impl.entities.EntityItemProjectile_v1_9_R2)1 CraftWorld (org.bukkit.craftbukkit.v1_9_R2.CraftWorld)1