Class ShovelItem

All Implemented Interfaces:
FeatureElement, ItemLike, IForgeItem

public class ShovelItem extends DiggerItem
  • Field Details

  • Constructor Details

  • Method Details

    • useOn

      public InteractionResult useOn(UseOnContext p_43119_)
      Overrides:
      useOn in class Item
    • getShovelPathingState

      @Nullable public static @Nullable BlockState getShovelPathingState(BlockState originalState)
    • canPerformAction

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