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 record
static interface
-
Method Summary
Modifier and TypeMethodDescriptionasProjectile
(Level level, Position pos, ItemStack stack, Direction direction) default ProjectileItem.DispenseConfig
default void
shoot
(Projectile projectile, double x, double y, double z, float velocity, float inaccuracy)
-
Method Details
-
asProjectile
-
createDispenseConfig
-
shoot
default void shoot(Projectile projectile, double x, double y, double z, float velocity, float inaccuracy)
-