LuaItemTable

public final class LuaItemTable

Builds the context.item Lua table exposed to item scripts. Provides id, material, amount, uses, name, and lore accessors.

Functions

Link copied to clipboard
public static LuaTable build(Player player, String itemId)
Builds the Lua table for an item identified by itemId equipped by player.