mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-16 02:34:49 +00:00
resolved merge conflicts with dev
This commit is contained in:
1 parent
c3e032dcf2
commit
cd92c340c7
8 files changed
+81
-22
No files matched your search
@@ -27,4 +27,23 @@ public interface IScriptHandler {
|
||||
Map<Long, String> getConsoleText();
|
||||
|
||||
void clearConsole();
|
||||
|
||||
/**
|
||||
* Create a new Janino (Java) script unit for this handler.
|
||||
* Handlers that don't support Janino scripts should return null.
|
||||
*
|
||||
* @return A new JaninoScript instance, or null if not supported
|
||||
*/
|
||||
default IScriptUnit createJaninoScriptUnit() {
|
||||
return null; // Default: Janino not supported
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if this handler supports Janino (Java) scripts.
|
||||
*
|
||||
* @return true if createJaninoScriptUnit() can create valid Janino scripts
|
||||
*/
|
||||
default boolean supportsJanino() {
|
||||
return createJaninoScriptUnit() != null;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user