类 ShovelItem

java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.ShovelItem
所有已实现的接口:
FeatureElement, ItemLike, IItemExtension

public class ShovelItem extends Item
  • 字段详细资料

  • 构造器详细资料

  • 方法详细资料

    • useOn

      public InteractionResult useOn(UseOnContext p_43119_)
      覆盖:
      useOn 在类中 Item
    • getShovelPathingState

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

      public boolean canPerformAction(ItemStack stack, ItemAbility itemAbility)
      从接口复制的说明: IItemExtension
      Queries if an item can perform the given action. See ItemAbilities for a description of each stock action
      参数:
      stack - The stack being used
      itemAbility - The action being queried
      返回:
      True if the stack can perform the action