Class FishingRodItem

java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.FishingRodItem
All Implemented Interfaces:
FeatureElement, ItemLike, IItemExtension

public class FishingRodItem extends Item
  • Constructor Details

  • Method Details

    • use

      public InteractionResultHolder<ItemStack> use(Level pLevel, Player pPlayer, InteractionHand pHand)
      Called to trigger the item's "innate" right click behavior. To handle when this item is used on a Block, see
      invalid reference
      #onItemUse
      .
      Overrides:
      use in class Item
    • getEnchantmentValue

      public int getEnchantmentValue()
      Overrides:
      getEnchantmentValue in class Item
    • canPerformAction

      public boolean canPerformAction(ItemStack stack, ItemAbility itemAbility)
      Description copied from interface: IItemExtension
      Queries if an item can perform the given action. See ItemAbilities for a description of each stock action
      Parameters:
      stack - The stack being used
      itemAbility - The action being queried
      Returns:
      True if the stack can perform the action