Class FishingRodItem

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

public class FishingRodItem
extends Item
Mappings:
Namespace Name
official zq
intermediary net/minecraft/class_2048
named net/minecraft/item/FishingRodItem
  • Constructor Details

    • FishingRodItem

      public FishingRodItem()
      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

    • isHandheld

      @Environment(CLIENT) public boolean isHandheld()
      Returns whether the item is supposed to look as handheld.
      Overrides:
      isHandheld in class Item
      Mappings:
      Namespace Name Mixin selector
      official w_ Lzw;w_()Z
      intermediary method_8305 Lnet/minecraft/class_2054;method_8305()Z
      named isHandheld Lnet/minecraft/item/Item;isHandheld()Z
    • shouldRotate

      @Environment(CLIENT) public boolean shouldRotate()
      Overrides:
      shouldRotate in class Item
      Mappings:
      Namespace Name Mixin selector
      official e Lzw;e()Z
      intermediary method_8283 Lnet/minecraft/class_2054;method_8283()Z
      named shouldRotate Lnet/minecraft/item/Item;shouldRotate()Z
    • 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;
    • isEnchantable

      public boolean isEnchantable​(ItemStack stack)
      Returns whether the current item can have enchantments. It does this by verifying that the item's maximum stack size is 1 and the item can break.
      Overrides:
      isEnchantable in class Item
      Mappings:
      Namespace Name Mixin selector
      official f_ Lzw;f_(Lzx;)Z
      intermediary method_8289 Lnet/minecraft/class_2054;method_8289(Lnet/minecraft/class_2056;)Z
      named isEnchantable Lnet/minecraft/item/Item;isEnchantable(Lnet/minecraft/item/ItemStack;)Z
    • 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