Class RangedWeaponItem

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

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

    • BOW_PROJECTILES

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

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

    • RangedWeaponItem

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

    • getHeldProjectiles

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

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

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

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

      protected void shootAll(ServerWorld world, LivingEntity shooter, Hand hand, ItemStack stack, List<ItemStack> projectiles, float speed, float divergence, boolean critical, @Nullable @Nullable LivingEntity target)
      Mappings:
      Namespace Name Mixin selector
      named shootAll Lnet/minecraft/item/RangedWeaponItem;shootAll(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/util/Hand;Lnet/minecraft/item/ItemStack;Ljava/util/List;FFZLnet/minecraft/entity/LivingEntity;)V
      intermediary method_57393 Lnet/minecraft/class_1811;method_57393(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;Lnet/minecraft/class_1268;Lnet/minecraft/class_1799;Ljava/util/List;FFZLnet/minecraft/class_1309;)V
      official a Lcyk;a(Lash;Lbwf;Lbth;Lcxo;Ljava/util/List;FFZLbwf;)V
    • getWeaponStackDamage

      protected int getWeaponStackDamage(ItemStack projectile)
      Mappings:
      Namespace Name Mixin selector
      named getWeaponStackDamage Lnet/minecraft/item/RangedWeaponItem;getWeaponStackDamage(Lnet/minecraft/item/ItemStack;)I
      intermediary method_57345 Lnet/minecraft/class_1811;method_57345(Lnet/minecraft/class_1799;)I
      official h Lcyk;h(Lcxo;)I
    • shoot

      protected abstract void shoot(LivingEntity shooter, ProjectileEntity projectile, int index, float speed, float divergence, float yaw, @Nullable @Nullable LivingEntity target)
      Mappings:
      Namespace Name Mixin selector
      named shoot Lnet/minecraft/item/RangedWeaponItem;shoot(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/projectile/ProjectileEntity;IFFFLnet/minecraft/entity/LivingEntity;)V
      intermediary method_7763 Lnet/minecraft/class_1811;method_7763(Lnet/minecraft/class_1309;Lnet/minecraft/class_1676;IFFFLnet/minecraft/class_1309;)V
      official a Lcyk;a(Lbwf;Lcqp;IFFFLbwf;)V
    • createArrowEntity

      protected ProjectileEntity createArrowEntity(World world, LivingEntity shooter, ItemStack weaponStack, ItemStack projectileStack, boolean critical)
      Mappings:
      Namespace Name Mixin selector
      named createArrowEntity Lnet/minecraft/item/RangedWeaponItem;createArrowEntity(Lnet/minecraft/world/World;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;Z)Lnet/minecraft/entity/projectile/ProjectileEntity;
      intermediary method_57344 Lnet/minecraft/class_1811;method_57344(Lnet/minecraft/class_1937;Lnet/minecraft/class_1309;Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;Z)Lnet/minecraft/class_1676;
      official a Lcyk;a(Ldhh;Lbwf;Lcxo;Lcxo;Z)Lcqp;
    • load

      protected static List<ItemStack> load(ItemStack stack, ItemStack projectileStack, LivingEntity shooter)
      Mappings:
      Namespace Name Mixin selector
      named load Lnet/minecraft/item/RangedWeaponItem;load(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/LivingEntity;)Ljava/util/List;
      intermediary method_57390 Lnet/minecraft/class_1811;method_57390(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;Lnet/minecraft/class_1309;)Ljava/util/List;
      official a Lcyk;a(Lcxo;Lcxo;Lbwf;)Ljava/util/List;
    • getProjectile

      protected static ItemStack getProjectile(ItemStack stack, ItemStack projectileStack, LivingEntity shooter, boolean multishot)
      Mappings:
      Namespace Name Mixin selector
      named getProjectile Lnet/minecraft/item/RangedWeaponItem;getProjectile(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/LivingEntity;Z)Lnet/minecraft/item/ItemStack;
      intermediary method_57391 Lnet/minecraft/class_1811;method_57391(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;Lnet/minecraft/class_1309;Z)Lnet/minecraft/class_1799;
      official a Lcyk;a(Lcxo;Lcxo;Lbwf;Z)Lcxo;