1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-11-05 01:26:20 +00:00
CC-Tweaked/projects
Jonathan Coates 591a7eca23
Clean up how we enumerate Lua/peripheral methods
- Move several interfaces out of `d00.computercraft.core.asm` into a
   new `aethods` package. It may make sense to expose this to the
   public API in a future commit (possibly part of #1462).

 - Add a new MethodSupplier<T> interface, which provides methods to
   iterate over all methods exported by an object (either directly, or
   including those from ObjectSources).

   This interface's concrete implementation (asm.MethodSupplierImpl),
   uses Generators and IntCaches as before - we can now make that all
   package-private though, which is nice!

 - Make the LuaMethod and PeripheralMethod MethodSupplier local to the
   ComputerContext. This currently has no effect (the underlying
   Generator is still global), but eventually we'll make GenericMethods
   non-global, which unlocks the door for #1382.

 - Update everything to use this new interface. This is mostly pretty
   sensible, but is a little uglier on the MC side (especially in
   generic peripherals), as we need to access the global ServerContext.
2023-06-26 19:42:42 +01:00
..
common Clean up how we enumerate Lua/peripheral methods 2023-06-26 19:42:42 +01:00
common-api Allow extending UpgradeDataProvider 2023-06-15 18:57:25 +01:00
core Clean up how we enumerate Lua/peripheral methods 2023-06-26 19:42:42 +01:00
core-api Support arguments being coerced from strings 2023-05-20 18:54:22 +01:00
fabric Clean up how we enumerate Lua/peripheral methods 2023-06-26 19:42:42 +01:00
fabric-api Publish Fabric jars to CF/Modrinth 2023-03-15 23:20:13 +00:00
forge Clean up how we enumerate Lua/peripheral methods 2023-06-26 19:42:42 +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