net.minecraft.world.item

public abstract class ProjectileWeaponItem

extends Item

All mapped superinterfaces:

FeatureElement, ItemLike

czn
net.minecraft.world.item.ProjectileWeaponItem
net.minecraft.class_1811
net.minecraft.item.RangedWeaponItem

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>
c()
getSupportedHeldProjectiles()
method_20310()
getHeldProjectiles()
public abstract Predicate<ItemStack>
a()
getAllSupportedProjectiles()
method_19268()
getProjectiles()
public static ItemStack
a(bwz arg0, Predicate<cys> 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
b()
getDefaultProjectileRange()
method_24792()
getRange()
protected void
a(aro arg0, bwz arg1, btx arg2, cys arg3, List<cys> arg4, float arg5, float arg6, boolean arg7, bwz 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(cys arg0)
getDurabilityUse(ItemStack arg0)
method_57345(class_1799 arg0)
getWeaponStackDamage(ItemStack projectile)
protected abstract void
a(bwz arg0, crm arg1, int arg2, float arg3, float arg4, float arg5, bwz 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(dip arg0, bwz arg1, cys arg2, cys 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(cys arg0, cys arg1, bwz 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(cys arg0, cys arg1, bwz 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)