Class AxeItem

All Implemented Interfaces:
FeatureElement, ItemLike, IForgeItem

public class AxeItem extends DiggerItem
  • Field Details

    • STRIPPABLES

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

  • Method Details

    • useOn

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

      private static boolean playerHasShieldUseIntent(UseOnContext p_343474_)
    • evaluateNewBlockState

      private Optional<BlockState> evaluateNewBlockState(Level p_312809_, BlockPos p_313114_, @Nullable Player p_312029_, BlockState p_311198_)
    • 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
    • getAxeStrippingState

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