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.item.RangedWeaponItem
net.minecraft.world.item.ItemProjectileWeapon

Field summary

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

Constructor summary

ModifierConstructor
public (Item$Properties arg0)

Method summary

Modifier and TypeMethod
public Predicate<ItemStack>
d()
getSupportedHeldProjectiles()
method_20310()
getHeldProjectiles()
public abstract Predicate<ItemStack>
b()
getAllSupportedProjectiles()
method_19268()
getProjectiles()
public static ItemStack
a(bwg arg0, Predicate<cxp> arg1)
getHeldProjectile(LivingEntity arg0, Predicate<ItemStack> arg1)
method_18815(class_1309 arg0, Predicate<class_1799> arg1)
getHeldProjectile(LivingEntity entity, Predicate<ItemStack> predicate)
public abstract int
c()
getDefaultProjectileRange()
method_24792()
getRange()
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)
shootAll(ServerWorld world, LivingEntity shooter, Hand hand, ItemStack stack, List<ItemStack> projectiles, float speed, float divergence, boolean critical, LivingEntity target)
protected int
h(cxp arg0)
getDurabilityUse(ItemStack arg0)
method_57345(class_1799 arg0)
getWeaponStackDamage(ItemStack projectile)
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)
shoot(LivingEntity shooter, ProjectileEntity projectile, int index, float speed, float divergence, float yaw, LivingEntity target)
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)
createArrowEntity(World world, LivingEntity shooter, ItemStack weaponStack, ItemStack projectileStack, boolean critical)
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)
load(ItemStack stack, ItemStack projectileStack, LivingEntity shooter)
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)
getProjectile(ItemStack stack, ItemStack projectileStack, LivingEntity shooter, boolean multishot)