Is your feature request related to a problem? Please describe.
I think 1.14 (or 1.13?) introduced the EntityProjectileThrowable class which projectiles like EnderPearls/Snowballs extend. This class has a method to change the displayed Item of that projectile. This can be used to display any item as a projectile.
Describe the solution you'd like
An API method to change the projectiles ItemStack
Describe alternatives you've considered
Currently only possible with nms.
Additional context
Sample:
Snowball projectile = player.launchProjectile(Snowball.class);
((CraftSnowball) projectile).getHandle().setItem(CraftItemStack.asNMSCopy(new ItemStack(Material.CARROT)));
https://puu.sh/Edy71/17cdc4ed73.png
Is your feature request related to a problem? Please describe.
I think 1.14 (or 1.13?) introduced the EntityProjectileThrowable class which projectiles like EnderPearls/Snowballs extend. This class has a method to change the displayed Item of that projectile. This can be used to display any item as a projectile.
Describe the solution you'd like
An API method to change the projectiles ItemStack
Describe alternatives you've considered
Currently only possible with nms.
Additional context
Sample:
https://puu.sh/Edy71/17cdc4ed73.png