1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-09-29 23:40:46 +00:00
CC-Tweaked/projects
Jonathan Coates 3112f455ae
Support arguments being coerced from strings
In this case, we use Lua's tostring(x) semantics (well, modulo
metamethods), instead of Java's Object.toString(x) call. This ensures
that values are formatted (mostly) consistently between Lua and Java
methods.

 - Add IArguments.getStringCoerced, which uses Lua's tostring semantics.

 - Add a Coerced<T> wrapper type, which says to use the .getXCoerced
   methods. I'm not thrilled about this interface - there's definitely
   an argument for using annotations - but this is probably more
   consistent for now.

 - Convert existing methods to use this call.

Closes #1445
2023-05-20 18:54:22 +01:00
..
common Support arguments being coerced from strings 2023-05-20 18:54:22 +01:00
common-api Further licensing work 2023-03-29 23:00:18 +01:00
core Support arguments being coerced from strings 2023-05-20 18:54:22 +01:00
core-api Support arguments being coerced from strings 2023-05-20 18:54:22 +01:00
fabric Support arguments being coerced from strings 2023-05-20 18:54:22 +01:00
fabric-api Publish Fabric jars to CF/Modrinth 2023-03-15 23:20:13 +00:00
forge Some core cleanup 2023-05-18 19:20:27 +01:00
forge-api License CC:T according to the REUSE specification (#1351) 2023-03-15 21:52:13 +00:00
lints License CC:T according to the REUSE specification (#1351) 2023-03-15 21:52:13 +00:00
web Re-license several more files under MPL-2.0 2023-03-28 10:28:59 +01:00
ARCHITECTURE.md License CC:T according to the REUSE specification (#1351) 2023-03-15 21:52:13 +00:00