类 FishingRodItem

java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.FishingRodItem
所有已实现的接口:
FeatureElement, ItemLike, IForgeItem

public class FishingRodItem extends Item
  • 构造器详细资料

  • 方法详细资料

    • use

      public InteractionResult use(Level p_41290_, Player p_41291_, InteractionHand p_41292_)
      覆盖:
      use 在类中 Item
    • canPerformAction

      public boolean canPerformAction(ItemStack stack, ToolAction toolAction)
      从接口复制的说明: IForgeItem
      Queries if an item can perform the given action. See ToolActions for a description of each stock action
      参数:
      stack - The stack being used
      toolAction - The action being queried
      返回:
      True if the stack can perform the action