LuaTableSupport

public final class LuaTableSupport

Types

Link copied to clipboard
@FunctionalInterface()
public interface LuaCallback

Functions

Link copied to clipboard
public static void lazyField(LuaTable table, String key, Supplier<LuaValue> supplier)
Registers a lazy field on table: supplier is invoked only when Lua actually reads key, and the value is NOT cached on the table — every read calls the supplier fresh.
Link copied to clipboard
public static LuaTable locationToTable(Location location)
Link copied to clipboard
public static Varargs stripMethodSelf(Varargs args, LuaTable owner)
Link copied to clipboard
public static LuaValue tableMethod(LuaTable owner, LuaTableSupport.LuaCallback callback)
Link copied to clipboard
public static Location tableToLocation(LuaTable table, World defaultWorld)
Link copied to clipboard
public static Vector tableToVector(LuaTable table)
Link copied to clipboard
public static LuaTable vectorToTable(Vector vector)