mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-12-12 19:20:29 +00:00
e85cdacbc5
Added the complete source code to ComputerCraft 1.79 for Minecraft 1.8.9, plus newly written README and LICENSE files for the open source release.
4.7 KiB
4.7 KiB
1 | LuaValue Consructors | Return type | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | valueOf(boolean) | LuaBoolean | |||||||||||
3 | valueOf(null) | LuaNil | |||||||||||
4 | valueOf(int) | LuaInteger | |||||||||||
5 | valueOf(double) | LuaNumber | |||||||||||
6 | valueOf(long) | LuaNumber | |||||||||||
7 | valueOf(String) | LuaString | |||||||||||
8 | tableOf(...) | LuaTable | |||||||||||
9 | listOf(LuaValue[]) | LuaTable | |||||||||||
10 | userdataOf(Object) | LuaUserdata | |||||||||||
11 | uerdataOf(Object,Value) | LuaUserdata | |||||||||||
12 | Arugment type | ||||||||||||
13 | LuaBoolean | LuaClosure | LuaFunction | LuaDouble | LuaInteger | LuaNil | LuaString | LuaTable | LuaThread | LuaUserdata | |||
14 | Type Check Functions | ||||||||||||
15 | isboolean | boolean | TRUE | f | f | f | f | f | f | f | f | f | |
16 | isclosure | boolean | f | TRUE | f | f | f | f | f | f | f | f | |
17 | isfunction | boolean | f | TRUE | TRUE | f | f | f | f | f | f | f | |
18 | isint | boolean | f | f | f | f | TRUE | f | true | f | f | f | f | |
19 | isinttype | boolean | f | f | f | f | TRUE | f | f | f | f | f | |
20 | isnumber | boolean | f | f | f | TRUE | TRUE | f | true | f | f | f | f | |
21 | islong | boolean | f | f | f | true | f | TRUE | f | true | f | f | f | f | |
22 | isnil | boolean | f | f | f | f | f | TRUE | f | f | f | f | |
23 | isstring | boolean | f | f | f | true | f | TRUE | f | TRUE | f | f | f | |
24 | istable | boolean | f | f | f | f | f | f | f | TRUE | f | f | |
25 | isthread | boolean | f | f | f | f | f | f | f | f | TRUE | f | |
26 | isuserdata | boolean | f | f | f | f | f | f | f | f | f | TRUE | |
27 | isuserdata(Class c) | boolean | f | f | f | f | f | f | f | f | f | true | f | |
28 | Java Type Coercion Functions | ||||||||||||
29 | toboolean | boolean | this.v | TRUE | TRUE | TRUE | TRUE | TRUE | TRUE | TRUE | TRUE | TRUE | |
30 | tobyte | byte | 0 | 0 | 0 | 0 | this.v | 0 | 0 | this.v | 0 | 0 | 0 | 0 | |
31 | tochar | char | 0 | 0 | 0 | 0 | this.v | 0 | 0 | this.v | 0 | 0 | 0 | 0 | |
32 | todouble | double | 0 | 0 | 0 | this.v | this.v | 0 | this.v | 0 | 0 | 0 | 0 | |
33 | tofloat | float | 0 | 0 | 0 | this.v | 0 | this.v | 0 | this.v | 0 | 0 | 0 | 0 | |
34 | toint | int | 0 | 0 | 0 | 0 | this.v | 0 | this.v | 0 | 0 | 0 | 0 | |
35 | tolong | long | 0 | 0 | 0 | 0 | this.v | 0 | this.v | 0 | 0 | 0 | 0 | |
36 | toshort | short | 0 | 0 | 0 | 0 | this.v | 0 | 0 | this.v | 0 | 0 | 0 | 0 | |
37 | tojstring | String | "true"|"false" | "closure: x" | "name" | (str) this.v | (str) this.v | "nil" | this.v | "table: x" | "thread: x" | "userdata: x" | |
38 | touserdata | Object | null | null | null | null | null | null | null | null | this | this.instance | |
39 | LuaBoolean | LuaClosure | LuaFunction | LuaDouble | LuaInteger | LuaNil | LuaString | LuaTable | LuaThread | LuaUserdata | |||
40 | Optional Argument Conversion Functions | ||||||||||||
41 | optboolean | boolean | this | e | e | e | e | defval | e | e | e | e | |
42 | optclosure | LuaClosure | n | this | e | e | e | defval | e | e | e | e | |
43 | optdouble | double | e | e | e | this | this | defval | this | e | e | e | e | |
44 | optfunction | LuaFunction | n | this | this | e | e | defval | e | e | e | e | |
45 | optint | int | e | e | e | (int) this | this | defval | this | e | e | e | e | |
46 | optinteger | LuaInteger | e | e | e | (int) this | this | defval | this | e | e | e | e | |
47 | optlong | long | e | e | e | (long) this | this | defval | this | e | e | e | e | |
48 | optnumber | LuaNumber | e | e | e | this | this | defval | this | e | e | e | e | |
49 | optjstring | String | e | e | e | (str) this.v | (str) this.v | defval | this | e | e | e | |
50 | optstring | LuaString | e | e | e | (str) this.v | (str) this.v | defval | this | e | e | e | |
51 | opttable | LuaTable | e | e | e | e | e | defval | e | this | e | e | |
52 | optthread | LuaThread | e | e | e | e | e | defval | e | e | this | n | |
53 | optuserdata | Object | e | e | e | e | e | defval | e | e | e | instance | |
54 | optuserdata(Class c) | Object | e | e | e | e | e | defval | e | e | e | instance | e | |
55 | Required Argument Conversion Functions | ||||||||||||
56 | checkboolean | boolean | this | e | e | e | e | e | e | e | e | e | |
57 | checkclosure | LuaClosure | e | this | e | e | e | e | e | e | e | e | |
58 | checkdouble | double | e | e | e | this | this | e | e | e | e | e | |
59 | checkfunction | LuaFunction | e | this | this | e | e | e | e | e | e | e | |
60 | checkint | int | e | e | e | this | e | this | e | e | e | e | e | |
61 | checkinteger | LuaInteger | e | e | e | e | this | e | e | e | e | e | |
62 | checklong | LuaNumber | e | e | e | this | e | this | e | e | e | e | e | |
63 | checknumber | LuaNumber | e | e | e | this | this | e | e | e | e | e | |
64 | checkjstring | String | e | e | e | (str) this.v | (str) this.v | e | (str) this.v | e | e | e | |
65 | checkstring | LuaString | e | e | e | (str) this.v | (str) this.v | e | this | e | e | e | |
66 | checktable | LuaTable | e | e | e | e | e | e | e | this | e | e | |
67 | checkthread | LuaThread | e | e | e | e | e | e | e | e | this | e | |
68 | checkuserdata | Object | e | e | e | e | e | e | e | e | e | instance | |
69 | checkuserdata(Class c) | Object | e | e | e | e | e | e | e | e | e | instance | e | |
70 | checkvalue | LuaValue | this | this | this | this | this | e | this | this | this | this | |
71 | LuaBoolean | LuaClosure | LuaFunction | LuaDouble | LuaInteger | LuaNil | LuaString | LuaTable | LuaThread | LuaUserdata | |||
72 | Lua Language Operations | ||||||||||||
73 | type | int | TBOOLEAN | TFUNCTION | TFUNCTION | TNUMBER | TNUMBER | TNIL | TSTRING | TTABLE | TTHREAD | TUSERDATA | |
74 | typename | string | "boolean" | "function" | "function" | "number" | "number" | "nil" | "string" | "table" | "thread" | "userdata" | |
75 | len | LuaInteger | e | e | e | e | e | e | #v | #v | e | e | |
76 | length | int | e | e | e | e | e | e | #v | #v | e | e | |
77 | getmetatable | LuaValue | static | static | static | static | static | static | static | instance | static | instance | |
78 | setmetatable | LuaValue | e | e | e | e | e | e | e | instance | e | instance | |
79 | getfenv | LuaTable | e | instance | instance | e | e | e | e | e | instance | e | |
80 | setfenv | LuaFunction | e | instance | instance | e | e | e | e | e | instance | e | |
81 | call | LuaValue | __call | call | call | __call | __call | __call | __call | __call | __call | __call | |
82 | invoke | Varargs | __call | call | call | __call | __call | __call | __call | __call | __call | __call | |
83 | get | LuaValue | __index | __index | __index | __index | __index | __index | __index | get | __index | __index | |
84 | set | LuaValue | __newindex | __newindex | __newindex | __newindex | __newindex | __newindex | __newindex | set | __newindex | __newindex |