类 AxeItem

所有已实现的接口:
FeatureElement, ItemLike, IForgeItem

public class AxeItem extends DiggerItem
  • 字段详细资料

    • STRIPPABLES

      protected static final Map<Block,Block> STRIPPABLES
  • 构造器详细资料

  • 方法详细资料

    • useOn

      public InteractionResult useOn(UseOnContext p_40529_)
      覆盖:
      useOn 在类中 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)
      从接口复制的说明: 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
    • getAxeStrippingState

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

      public boolean canDisableShield(ItemStack stack, ItemStack shield, LivingEntity entity, LivingEntity attacker)
      从接口复制的说明: IForgeItem
      Can this Item disable a shield
      参数:
      stack - The ItemStack
      shield - The shield in question
      entity - The LivingEntity holding the shield
      attacker - The LivingEntity holding the ItemStack
      返回:
      True if this ItemStack can disable the shield in question.