mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-10-22 09:27:39 +00:00
Expose ArgumentHelper in the public API
This is sufficiently useful a class, that it's worthwhile exposing it. Hopefully we can slowly encourage other mods to migrate to it (well, at least in 1.14), and so make error messages more consistent. Also: - Add Javadoc for all public methods - Clarify the method names a little (getNumber -> getDouble, getReal -> getFiniteDouble). - Make the *Table methods return a Map<?,?> instead of Map<Object, Object>.
This commit is contained in:
@@ -37,8 +37,8 @@ import java.util.concurrent.locks.Condition;
|
||||
import java.util.concurrent.locks.ReentrantLock;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
import static dan200.computercraft.core.apis.ArgumentHelper.getTable;
|
||||
import static dan200.computercraft.core.apis.ArgumentHelper.getType;
|
||||
import static dan200.computercraft.api.lua.ArgumentHelper.getTable;
|
||||
import static dan200.computercraft.api.lua.ArgumentHelper.getType;
|
||||
|
||||
/**
|
||||
* Loads tests from {@code test-rom/spec} and executes them.
|
||||
|
@@ -12,7 +12,7 @@ import dan200.computercraft.api.filesystem.IWritableMount;
|
||||
import dan200.computercraft.api.lua.ILuaAPI;
|
||||
import dan200.computercraft.api.lua.ILuaContext;
|
||||
import dan200.computercraft.api.lua.LuaException;
|
||||
import dan200.computercraft.core.apis.ArgumentHelper;
|
||||
import dan200.computercraft.api.lua.ArgumentHelper;
|
||||
import dan200.computercraft.core.filesystem.MemoryMount;
|
||||
import dan200.computercraft.core.terminal.Terminal;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
|
Reference in New Issue
Block a user