Class DispatcherUtil
java.lang.Object
DispatcherUtil
An implementation of
ArgumentUtils which produces JSON from a command
dispatcher and its root node. We have to avoid accessing IRegistry because it
isn't mock-able and cannot be instantiated through normal means-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <S> com.google.gson.JsonObjecttoJSON(com.mojang.brigadier.CommandDispatcher<S> dispatcher, com.mojang.brigadier.tree.CommandNode<S> node)
-
Constructor Details
-
DispatcherUtil
public DispatcherUtil()
-
-
Method Details
-
toJSON
public static <S> com.google.gson.JsonObject toJSON(com.mojang.brigadier.CommandDispatcher<S> dispatcher, com.mojang.brigadier.tree.CommandNode<S> node)
-