Class AxeItem

All Implemented Interfaces:
Vanishable, ItemLike, IForgeItem

public class AxeItem extends DiggerItem
  • Field Details

    • STRIPPABLES

      protected static final Map<Block,Block> STRIPPABLES
  • Constructor Details

    • AxeItem

      public AxeItem(Tier p_40521_, float p_40522_, float p_40523_, Item.Properties p_40524_)
  • Method Details

    • useOn

      public InteractionResult useOn(UseOnContext p_40529_)
      Overrides:
      useOn in class Item
    • getAxeStrippingState

      @Nullable public static @Nullable BlockState getAxeStrippingState(BlockState originalState)
    • getStripped

      private Optional<BlockState> getStripped(BlockState p_150691_)
    • 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