Class RangedWeaponItem

java.lang.Object
net.minecraft.item.Item
net.minecraft.item.RangedWeaponItem
All Implemented Interfaces:
ItemConvertible
Direct Known Subclasses:
BowItem, CrossbowItem

public abstract class RangedWeaponItem extends Item
Mappings:
Namespace Name
official cbm
intermediary net/minecraft/class_1811
named net/minecraft/item/RangedWeaponItem
  • Field Details

    • BOW_PROJECTILES

      public static final Predicate<ItemStack> BOW_PROJECTILES
      Mappings:
      Namespace Name Mixin selector
      official c Lcbm;c:Ljava/util/function/Predicate;
      intermediary field_18281 Lnet/minecraft/class_1811;field_18281:Ljava/util/function/Predicate;
      named BOW_PROJECTILES Lnet/minecraft/item/RangedWeaponItem;BOW_PROJECTILES:Ljava/util/function/Predicate;
    • CROSSBOW_HELD_PROJECTILES

      public static final Predicate<ItemStack> CROSSBOW_HELD_PROJECTILES
      Mappings:
      Namespace Name Mixin selector
      official d Lcbm;d:Ljava/util/function/Predicate;
      intermediary field_18282 Lnet/minecraft/class_1811;field_18282:Ljava/util/function/Predicate;
      named CROSSBOW_HELD_PROJECTILES Lnet/minecraft/item/RangedWeaponItem;CROSSBOW_HELD_PROJECTILES:Ljava/util/function/Predicate;
  • Constructor Details

    • RangedWeaponItem

      public RangedWeaponItem(Item.Settings settings)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcat;<init>(Lcat$a;)V
      intermediary <init> Lnet/minecraft/class_1792;<init>(Lnet/minecraft/class_1792$class_1793;)V
      named <init> Lnet/minecraft/item/Item;<init>(Lnet/minecraft/item/Item$Settings;)V
  • Method Details

    • getHeldProjectiles

      public Predicate<ItemStack> getHeldProjectiles()
      Mappings:
      Namespace Name Mixin selector
      official e Lcbm;e()Ljava/util/function/Predicate;
      intermediary method_20310 Lnet/minecraft/class_1811;method_20310()Ljava/util/function/Predicate;
      named getHeldProjectiles Lnet/minecraft/item/RangedWeaponItem;getHeldProjectiles()Ljava/util/function/Predicate;
    • getProjectiles

      public abstract Predicate<ItemStack> getProjectiles()
      Mappings:
      Namespace Name Mixin selector
      official b Lcbm;b()Ljava/util/function/Predicate;
      intermediary method_19268 Lnet/minecraft/class_1811;method_19268()Ljava/util/function/Predicate;
      named getProjectiles Lnet/minecraft/item/RangedWeaponItem;getProjectiles()Ljava/util/function/Predicate;
    • getHeldProjectile

      public static ItemStack getHeldProjectile(LivingEntity entity, Predicate<ItemStack> predicate)
      Mappings:
      Namespace Name Mixin selector
      official a Lcbm;a(Lbcc;Ljava/util/function/Predicate;)Lcax;
      intermediary method_18815 Lnet/minecraft/class_1811;method_18815(Lnet/minecraft/class_1309;Ljava/util/function/Predicate;)Lnet/minecraft/class_1799;
      named getHeldProjectile Lnet/minecraft/item/RangedWeaponItem;getHeldProjectile(Lnet/minecraft/entity/LivingEntity;Ljava/util/function/Predicate;)Lnet/minecraft/item/ItemStack;
    • getEnchantability

      public int getEnchantability()
      Gets the enchantability of an item. This specifies the ability of an item to receive enchantments when enchanted using an enchanting table. As the value increases, the amount and level of enchantments applied increase.

      If the value of this method is 0, the item cannot be enchanted using an enchanting table.

      Overrides:
      getEnchantability in class Item
      Mappings:
      Namespace Name Mixin selector
      official c Lcat;c()I
      intermediary method_7837 Lnet/minecraft/class_1792;method_7837()I
      named getEnchantability Lnet/minecraft/item/Item;getEnchantability()I
    • getRange

      public abstract int getRange()
      Mappings:
      Namespace Name Mixin selector
      official d Lcbm;d()I
      intermediary method_24792 Lnet/minecraft/class_1811;method_24792()I
      named getRange Lnet/minecraft/item/RangedWeaponItem;getRange()I