Class DispatcherUtil

java.lang.Object
DispatcherUtil

public class DispatcherUtil extends Object
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 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)