Class ShovelItem

All Implemented Interfaces:
Vanishable, ItemLike, IForgeItem

public class ShovelItem extends DiggerItem
  • Field Details

  • Constructor Details

    • ShovelItem

      public ShovelItem(Tier p_43114_, float p_43115_, float p_43116_, Item.Properties p_43117_)
  • 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