Class ItemAbilities

java.lang.Object
net.neoforged.neoforge.common.ItemAbilities

public class ItemAbilities extends Object
  • Field Details

    • SHEARS_DIG

      public static final ItemAbility SHEARS_DIG
      Exposed by shears to allow querying tool behaviours
    • SHOVEL_DOUSE

      public static final ItemAbility SHOVEL_DOUSE
    • SWORD_SWEEP

      public static final ItemAbility SWORD_SWEEP
      Used during player attack to figure out if a sweep attack should be performed
      See Also:
    • SHEARS_HARVEST

      public static final ItemAbility SHEARS_HARVEST
      This action is exposed by shears and corresponds to a harvest action that is triggered with a right click on a block that supports such behaviour. Example: Right click with shears on a beehive with honey level 5 to harvest it.
      See Also:
    • SHEARS_REMOVE_ARMOR

      public static final ItemAbility SHEARS_REMOVE_ARMOR
      This action is exposed by shears and corresponds to a harvest action that is triggered with a right click on armored wolves.
    • SHEARS_CARVE

      public static final ItemAbility SHEARS_CARVE
      This action is exposed by shears and corresponds to a carve action that is triggered with a right click on a block that supports such behaviour. Example: Right click with shears on a pumpkin to carve it.
    • SHEARS_DISARM

      public static final ItemAbility SHEARS_DISARM
      This action is exposed by shears and corresponds to a disarm action that is triggered by breaking a block that supports such behaviour. Example: Breaking a trip wire with shears to disarm it.
    • SHEARS_TRIM

      public static final ItemAbility SHEARS_TRIM
      This action is exposed by shears and corresponds to a trim action that is triggered with a right click on a block that supports such behavior. Example: Right click with shears on a growing plant to stop it from growing.
    • FISHING_ROD_CAST

      public static final ItemAbility FISHING_ROD_CAST
      This action corresponds to right-clicking the fishing rod to reel it in after earlier casting. Needed for modded fishing rods so that the FishingHook entity can properly function.
    • TRIDENT_THROW

      public static final ItemAbility TRIDENT_THROW
      Exposed by trident-like items to allow querying tool behaviours for items that can be thrown like Tridents.
    • BRUSH_BRUSH

      public static final ItemAbility BRUSH_BRUSH
      Exposed by brushes to allow querying tool behaviours for items that can brush Suspicious Blocks.
    • FIRESTARTER_LIGHT

      public static final ItemAbility FIRESTARTER_LIGHT
      Passed onto IBlockExtension.getToolModifiedState(BlockState, UseOnContext, ItemAbility, boolean) when flint and steel or fire charge want to light a campfire/candle/cake. Note that dispensers with flint and steel will also use this but will have no player.
    • SPYGLASS_SCOPE

      public static final ItemAbility SPYGLASS_SCOPE
      Exposed by spyglasses to allow querying tool behaviours for items that can be used to scope.
    • DEFAULT_SHEARS_ACTIONS

      public static final Set<ItemAbility> DEFAULT_SHEARS_ACTIONS
    • DEFAULT_FISHING_ROD_ACTIONS

      public static final Set<ItemAbility> DEFAULT_FISHING_ROD_ACTIONS
    • DEFAULT_TRIDENT_ACTIONS

      public static final Set<ItemAbility> DEFAULT_TRIDENT_ACTIONS
    • DEFAULT_BRUSH_ACTIONS

      public static final Set<ItemAbility> DEFAULT_BRUSH_ACTIONS
    • DEFAULT_FLINT_ACTIONS

      public static final Set<ItemAbility> DEFAULT_FLINT_ACTIONS
    • DEFAULT_FIRECHARGE_ACTIONS

      public static final Set<ItemAbility> DEFAULT_FIRECHARGE_ACTIONS
    • DEFAULT_SPYGLASS_ACTIONS

      public static final Set<ItemAbility> DEFAULT_SPYGLASS_ACTIONS
  • Constructor Details

    • ItemAbilities

      public ItemAbilities()
  • Method Details