Class ProjectileWeaponItem

java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.ProjectileWeaponItem
All Implemented Interfaces:
ItemLike, IForgeItem
Direct Known Subclasses:
BowItem, CrossbowItem

public abstract class ProjectileWeaponItem extends Item
  • Field Details

  • Constructor Details

    • ProjectileWeaponItem

      public ProjectileWeaponItem(Item.Properties p_43009_)
  • Method Details

    • getSupportedHeldProjectiles

      public Predicate<ItemStack> getSupportedHeldProjectiles()
    • getAllSupportedProjectiles

      public abstract Predicate<ItemStack> getAllSupportedProjectiles()
    • getHeldProjectile

      public static ItemStack getHeldProjectile(LivingEntity p_43011_, Predicate<ItemStack> p_43012_)
    • getEnchantmentValue

      public int getEnchantmentValue()
      Description copied from class: Item
      Forge: Use ItemStack sensitive version.
      Overrides:
      getEnchantmentValue in class Item
    • getDefaultProjectileRange

      public abstract int getDefaultProjectileRange()