Class ArgumentUtils

java.lang.Object
net.minecraft.commands.synchronization.ArgumentUtils

public class ArgumentUtils extends Object
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • NUMBER_FLAG_MIN

      private static final byte NUMBER_FLAG_MIN
      See Also:
    • NUMBER_FLAG_MAX

      private static final byte NUMBER_FLAG_MAX
      See Also:
  • Constructor Details

    • ArgumentUtils

      public ArgumentUtils()
  • Method Details

    • createNumberFlags

      public static int createNumberFlags(boolean p_235428_, boolean p_235429_)
    • numberHasMin

      public static boolean numberHasMin(byte p_235403_)
    • numberHasMax

      public static boolean numberHasMax(byte p_235431_)
    • serializeCap

      private static <A extends com.mojang.brigadier.arguments.ArgumentType<?>> void serializeCap(com.google.gson.JsonObject p_235408_, ArgumentTypeInfo.Template<A> p_235409_)
    • serializeCap

      private static <A extends com.mojang.brigadier.arguments.ArgumentType<?>, T extends ArgumentTypeInfo.Template<A>> void serializeCap(com.google.gson.JsonObject p_235411_, ArgumentTypeInfo<A,T> p_235412_, ArgumentTypeInfo.Template<A> p_235413_)
    • serializeArgumentToJson

      private static <T extends com.mojang.brigadier.arguments.ArgumentType<?>> void serializeArgumentToJson(com.google.gson.JsonObject p_235405_, T p_235406_)
    • serializeNodeToJson

      public static <S> com.google.gson.JsonObject serializeNodeToJson(com.mojang.brigadier.CommandDispatcher<S> p_235415_, com.mojang.brigadier.tree.CommandNode<S> p_235416_)
    • findUsedArgumentTypes

      public static <T> Set<com.mojang.brigadier.arguments.ArgumentType<?>> findUsedArgumentTypes(com.mojang.brigadier.tree.CommandNode<T> p_235418_)
    • findUsedArgumentTypes

      private static <T> void findUsedArgumentTypes(com.mojang.brigadier.tree.CommandNode<T> p_235420_, Set<com.mojang.brigadier.arguments.ArgumentType<?>> p_235421_, Set<com.mojang.brigadier.tree.CommandNode<T>> p_235422_)