GearRestrictionHandler

Provides utility methods for skill-based gear restrictions. The actual restriction enforcement is handled by PlayerItem's equipment update system.

Constructors

Link copied to clipboard
public void GearRestrictionHandler()

Types

Link copied to clipboard
public final class RestrictionContext extends Record

Functions

Link copied to clipboard
public static boolean canEquip(Player player, ItemStack itemStack)
Checks if a player can equip an item based on their skill level.
Link copied to clipboard
public static int getEffectiveItemLevel(Player player, ItemStack itemStack)
Gets the effective item level for combat purposes.
Link copied to clipboard
public static GearRestrictionHandler.RestrictionContext getRestrictionContext(Player player, ItemStack itemStack)
Captures the player state that can change an otherwise unchanged item's eligibility.
Link copied to clipboard
public static void sendRestrictionMessage(Player player, ItemStack itemStack)
Sends the restriction message to a player.
Link copied to clipboard
public static void shutdown()