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_338867_, Position p_338379_, ItemStack p_338543_, Direction p_338380_) default ProjectileItem.DispenseConfig
default void
shoot
(Projectile p_338559_, double p_338418_, double p_338827_, double p_338653_, float p_338287_, float p_338314_)
-
Method Details
-
asProjectile
Projectile asProjectile(Level p_338867_, Position p_338379_, ItemStack p_338543_, Direction p_338380_) -
createDispenseConfig
-
shoot
default void shoot(Projectile p_338559_, double p_338418_, double p_338827_, double p_338653_, float p_338287_, float p_338314_)
-