1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-11-05 08:03:01 +00:00

Move API registration into separate classes

There's several reasons for this change:
 - Try to make ComputerCraft.java less monolithic by moving
   functionality into separate module-specific classes.
 - Hopefully make the core class less Minecraft dependent, meaning
   emulators are a little less dependent on anything outside of /core.

Note we still need /some/ methods in the main ComputerCraft class in
order to maintain backwards compatibility with Plethora and
Computronics.
This commit is contained in:
SquidDev
2018-12-10 23:46:50 +00:00
parent 57fb77d7fe
commit 41a320e9a4
41 changed files with 662 additions and 548 deletions

View File

@@ -494,11 +494,7 @@ public final class ComputerCraftAPI
{
try
{
if( computerCraft != null )
{
return computerCraft.getMethod( name, args );
}
return null;
return computerCraft != null ? computerCraft.getMethod( name, args ) : null;
}
catch( NoSuchMethodException e )
{