reworked script host, working on nbttags
This commit is contained in:
1 parent
5e404d62be
commit
239e7006a5
11 files changed
+175
-51
No files matched your search
@@ -122,6 +122,11 @@ public class CarpetEventServer
|
||||
{
|
||||
callList.removeIf((c)-> c.udf.equalsIgnoreCase(callName) && ( hostName == null || c.host.equalsIgnoreCase(hostName) ) );
|
||||
}
|
||||
|
||||
public void removeAllCalls(String hostName)
|
||||
{
|
||||
callList.removeIf((c)-> c.host.equals(hostName));
|
||||
}
|
||||
}
|
||||
|
||||
public Map<String, CallbackList> eventHandlers = new HashMap<>();
|
||||
@@ -194,6 +199,11 @@ public class CarpetEventServer
|
||||
return true;
|
||||
}
|
||||
|
||||
public void removeAllHostEvents(String hostName)
|
||||
{
|
||||
eventHandlers.forEach((e, a) -> a.removeAllCalls(hostName));
|
||||
}
|
||||
|
||||
private Callback decodeCallback(String funName)
|
||||
{
|
||||
Pattern find = Pattern.compile("(\\w+)\\(from (\\w+)\\)");
|
||||
|
||||
Reference in new issue
Block a user