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 InteractionResult use(Level p_41290_, Player p_41291_, InteractionHand p_41292_)
      Overrides:
      use 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