Package net.minecraft.world.item
Interface ProjectileItem
- All Known Implementing Classes:
ArrowItem,EggItem,ExperienceBottleItem,FireChargeItem,FireworkRocketItem,LingeringPotionItem,SnowballItem,SpectralArrowItem,SplashPotionItem,ThrowablePotionItem,TippedArrowItem,TridentItem,WindChargeItem
public interface ProjectileItem
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordstatic interface -
Method Summary
Modifier and TypeMethodDescriptionasProjectile(Level pLevel, Position pPos, ItemStack pStack, Direction pDirection) default ProjectileItem.DispenseConfigdefault voidshoot(Projectile pProjectile, double pX, double pY, double pZ, float pVelocity, float pInaccuracy)
-
Method Details
-
asProjectile
-
createDispenseConfig
-
shoot
default void shoot(Projectile pProjectile, double pX, double pY, double pZ, float pVelocity, float pInaccuracy)
-