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
Modifier and TypeInterfaceDescriptionstatic final record
static interface
-
Method Summary
Modifier and TypeMethodDescriptionasProjectile
(Level p_329689_, Position p_329462_, ItemStack p_328976_, Direction p_329211_) default ProjectileItem.DispenseConfig
default void
shoot
(Projectile p_328685_, double p_328692_, double p_328907_, double p_334180_, float p_333007_, float p_331671_)
-
Method Details
-
asProjectile
Projectile asProjectile(Level p_329689_, Position p_329462_, ItemStack p_328976_, Direction p_329211_) -
createDispenseConfig
-
shoot
default void shoot(Projectile p_328685_, double p_328692_, double p_328907_, double p_334180_, float p_333007_, float p_331671_)
-