net.minecraft.world.item

public abstract class ProjectileWeaponItem

extends Item

All mapped superinterfaces:

FeatureElement, ItemLike

cyl
net.minecraft.world.item.ProjectileWeaponItem
net.minecraft.class_1811
net.minecraft.unmapped.C_axrfhndl
net.minecraft.item.RangedWeaponItem
net.minecraft.item.RangedWeaponItem
net.minecraft.src.C_1406_
net.minecraft.world.item.ItemProjectileWeapon

Field summary

Modifier and TypeField
public static final Predicate<ItemStack>
c
ARROW_ONLY
field_18281
f_evqweylu
BOW_PROJECTILES
BOW_PROJECTILES
f_43005_
public static final Predicate<ItemStack>
d
ARROW_OR_FIREWORK
field_18282
f_oatcxoeo
CROSSBOW_HELD_PROJECTILES
CROSSBOW_HELD_PROJECTILES
f_43006_

Constructor summary

ModifierConstructor
public (Item$Properties settings)

Method summary

Modifier and TypeMethod
public Predicate<ItemStack>
d()
getSupportedHeldProjectiles()
method_20310()
m_cklqgcpd()
getHeldProjectiles()
getHeldProjectiles()
m_6442_()
public abstract Predicate<ItemStack>
b()
getAllSupportedProjectiles()
method_19268()
m_yigyclfo()
getProjectiles()
getProjectiles()
m_6437_()
public static ItemStack
a(bwg arg0, Predicate<cxp> arg1)
getHeldProjectile(LivingEntity arg0, Predicate<ItemStack> arg1)
method_18815(class_1309 arg0, Predicate<class_1799> arg1)
m_lskavclm(C_usxaxydn arg0, Predicate<C_sddaxwyk> arg1)
getHeldProjectile(LivingEntity entity, Predicate<ItemStack> predicate)
getHeldProjectile(LivingEntity entity, Predicate<ItemStack> predicate)
m_43010_(C_524_ p_43011_, Predicate<C_1391_> p_43012_)
public abstract int
c()
getDefaultProjectileRange()
method_24792()
m_npgeoury()
getRange()
getRange()
m_6615_()
protected void
a(ash arg0, bwg arg1, bti arg2, cxp arg3, List<cxp> arg4, float arg5, float arg6, boolean arg7, bwg arg8)
shoot(ServerLevel arg0, LivingEntity arg1, InteractionHand arg2, ItemStack arg3, List<ItemStack> arg4, float arg5, float arg6, boolean arg7, LivingEntity arg8)
method_57393(class_3218 arg0, class_1309 arg1, class_1268 arg2, class_1799 arg3, List<class_1799> arg4, float arg5, float arg6, boolean arg7, class_1309 arg8)
m_bcqhkdxf(C_bdwnwhiu arg0, C_usxaxydn arg1, C_laxmzoqs arg2, C_sddaxwyk arg3, List<C_sddaxwyk> arg4, float arg5, float arg6, boolean arg7, C_usxaxydn arg8)
shootAll(ServerWorld world, LivingEntity shooter, Hand hand, ItemStack stack, List<ItemStack> projectiles, float speed, float divergence, boolean critical, LivingEntity target)
shootAll(ServerWorld world, LivingEntity arrow, Hand hand, ItemStack stack, List<ItemStack> items, float speed, float divergence, boolean isCritical, LivingEntity target)
m_324710_(C_12_ p_332682_, C_524_ p_333462_, C_470_ p_333670_, C_1391_ p_328443_, List<C_1391_> p_330956_, float p_333326_, float p_332457_, boolean p_328954_, C_524_ arg8)
protected int
h(cxp arg0)
getDurabilityUse(ItemStack arg0)
method_57345(class_1799 arg0)
m_tlsladkr(C_sddaxwyk arg0)
getWeaponStackDamage(ItemStack projectile)
getUseDamage(ItemStack stack)
m_319432_(C_1391_ arg0)
protected abstract void
a(bwg arg0, cqq arg1, int arg2, float arg3, float arg4, float arg5, bwg arg6)
shootProjectile(LivingEntity arg0, Projectile arg1, int arg2, float arg3, float arg4, float arg5, LivingEntity arg6)
method_7763(class_1309 arg0, class_1676 arg1, int arg2, float arg3, float arg4, float arg5, class_1309 arg6)
m_fhkzmpeo(C_usxaxydn arg0, C_ltpsyvhj arg1, int arg2, float arg3, float arg4, float arg5, C_usxaxydn arg6)
shoot(LivingEntity shooter, ProjectileEntity projectile, int index, float speed, float divergence, float yaw, LivingEntity target)
shoot(LivingEntity shooter, ProjectileEntity projectile, int index, float speed, float divergence, float yawOffset, LivingEntity target)
m_40894_(C_524_ p_328720_, C_1167_ p_328740_, int p_335337_, float p_332934_, float p_329948_, float p_329516_, C_524_ arg6)
protected Projectile
a(dhi arg0, bwg arg1, cxp arg2, cxp arg3, boolean arg4)
createProjectile(Level arg0, LivingEntity arg1, ItemStack arg2, ItemStack arg3, boolean arg4)
method_57344(class_1937 arg0, class_1309 arg1, class_1799 arg2, class_1799 arg3, boolean arg4)
m_rbhackqr(C_cdctfzbn arg0, C_usxaxydn arg1, C_sddaxwyk arg2, C_sddaxwyk arg3, boolean arg4)
createArrowEntity(World world, LivingEntity shooter, ItemStack weaponStack, ItemStack projectileStack, boolean critical)
getProjectile(World world, LivingEntity entity, ItemStack weapon, ItemStack arrow, boolean isCritical)
m_40862_(C_1596_ p_334736_, C_524_ p_333680_, C_1391_ p_329118_, C_1391_ p_336242_, boolean arg4)
protected static List<ItemStack>
a(cxp arg0, cxp arg1, bwg arg2)
draw(ItemStack arg0, ItemStack arg1, LivingEntity arg2)
method_57390(class_1799 arg0, class_1799 arg1, class_1309 arg2)
m_xmlyrvdl(C_sddaxwyk arg0, C_sddaxwyk arg1, C_usxaxydn arg2)
load(ItemStack stack, ItemStack projectileStack, LivingEntity shooter)
load(ItemStack projectile, ItemStack arrowType, LivingEntity shooter)
m_320555_(C_1391_ p_329054_, C_1391_ p_328618_, C_524_ p_335616_)
protected static ItemStack
a(cxp arg0, cxp arg1, bwg arg2, boolean arg3)
useAmmo(ItemStack arg0, ItemStack arg1, LivingEntity arg2, boolean arg3)
method_57391(class_1799 arg0, class_1799 arg1, class_1309 arg2, boolean arg3)
m_rvgcyhtv(C_sddaxwyk arg0, C_sddaxwyk arg1, C_usxaxydn arg2, boolean arg3)
getProjectile(ItemStack stack, ItemStack projectileStack, LivingEntity shooter, boolean multishot)
getProjectile(ItemStack weapon, ItemStack projectile, LivingEntity shooter, boolean multishot)
m_324157_(C_1391_ p_335938_, C_1391_ p_332014_, C_524_ p_332327_, boolean p_327685_)