Class BowItem

java.lang.Object
net.minecraft.item.Item
net.minecraft.item.BowItem

public class BowItem
extends Item
Mappings:
Namespace Name
official yt
intermediary net/minecraft/class_2023
named net/minecraft/item/BowItem
  • Field Details

    • field_8550

      public static final String[] field_8550
      Mappings:
      Namespace Name Mixin selector
      official a Lyt;a:[Ljava/lang/String;
      intermediary field_8550 Lnet/minecraft/class_2023;field_8550:[Ljava/lang/String;
      named field_8550 Lnet/minecraft/item/BowItem;field_8550:[Ljava/lang/String;
  • Constructor Details

    • BowItem

      public BowItem()
      Mappings:
      Namespace Name Mixin selector
      official <init> Lzw;<init>()V
      intermediary <init> Lnet/minecraft/class_2054;<init>()V
      named <init> Lnet/minecraft/item/Item;<init>()V
  • Method Details

    • onUseStopped

      public void onUseStopped​(ItemStack stack, World world, PlayerEntity player, int remainingTicks)
      Overrides:
      onUseStopped in class Item
      Mappings:
      Namespace Name Mixin selector
      official a Lzw;a(Lzx;Ladm;Lwn;I)V
      intermediary method_8261 Lnet/minecraft/class_2054;method_8261(Lnet/minecraft/class_2056;Lnet/minecraft/class_99;Lnet/minecraft/class_1963;I)V
      named onUseStopped Lnet/minecraft/item/Item;onUseStopped(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;I)V
    • onFinishUse

      public ItemStack onFinishUse​(ItemStack stack, World world, PlayerEntity player)
      Overrides:
      onFinishUse in class Item
      Mappings:
      Namespace Name Mixin selector
      official b Lzw;b(Lzx;Ladm;Lwn;)Lzx;
      intermediary method_8273 Lnet/minecraft/class_2054;method_8273(Lnet/minecraft/class_2056;Lnet/minecraft/class_99;Lnet/minecraft/class_1963;)Lnet/minecraft/class_2056;
      named onFinishUse Lnet/minecraft/item/Item;onFinishUse(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/item/ItemStack;
    • getMaxUseTime

      public int getMaxUseTime​(ItemStack stack)
      Overrides:
      getMaxUseTime in class Item
      Mappings:
      Namespace Name Mixin selector
      official d Lzw;d(Lzx;)I
      intermediary method_8281 Lnet/minecraft/class_2054;method_8281(Lnet/minecraft/class_2056;)I
      named getMaxUseTime Lnet/minecraft/item/Item;getMaxUseTime(Lnet/minecraft/item/ItemStack;)I
    • getUseAction

      public UseAction getUseAction​(ItemStack stack)
      Returns the UseAction for an item when the item is used. Used by food, potions, bows, etc.
      Overrides:
      getUseAction in class Item
      Parameters:
      stack - The ItemStack that was used
      See Also:
      BowItem, PotionItem
      Mappings:
      Namespace Name Mixin selector
      official e Lzw;e(Lzx;)Laba;
      intermediary method_8285 Lnet/minecraft/class_2054;method_8285(Lnet/minecraft/class_2056;)Lnet/minecraft/class_30;
      named getUseAction Lnet/minecraft/item/Item;getUseAction(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/util/UseAction;
    • onStartUse

      public ItemStack onStartUse​(ItemStack stack, World world, PlayerEntity player)
      Overrides:
      onStartUse in class Item
      Mappings:
      Namespace Name Mixin selector
      official a Lzw;a(Lzx;Ladm;Lwn;)Lzx;
      intermediary method_8260 Lnet/minecraft/class_2054;method_8260(Lnet/minecraft/class_2056;Lnet/minecraft/class_99;Lnet/minecraft/class_1963;)Lnet/minecraft/class_2056;
      named onStartUse Lnet/minecraft/item/Item;onStartUse(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/item/ItemStack;
    • getEnchantability

      public int getEnchantability()
      Returns the enchantability of an Item. Used by tools and armor
      Overrides:
      getEnchantability in class Item
      Returns:
      Enchantability
      See Also:
      ToolItem, ArmorItem
      Mappings:
      Namespace Name Mixin selector
      official b Lzw;b()I
      intermediary method_8269 Lnet/minecraft/class_2054;method_8269()I
      named getEnchantability Lnet/minecraft/item/Item;getEnchantability()I