LuaWorldTable

public final class LuaWorldTable

Builds the Lua table exposed as context.world to Lua scripts. Contains generic world operations using pure Bukkit API.

Functions

Link copied to clipboard
public static LuaTable build(World world)
Link copied to clipboard
public static void playSound(Location location, String soundName, float volume, float pitch)
Plays either a registered Bukkit sound or a custom resource-pack sound.
Link copied to clipboard
public static void registerEnricher(BiConsumer<LuaTable, World> enricher)
Registers a tier-2 enricher that adds plugin-specific methods to every context.world table (e.g.
Link copied to clipboard
public static Sound resolveRegisteredSound(String soundName)