Class ArgumentTypes

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

public class ArgumentTypes extends Object
  • Field Details

  • Constructor Details

    • ArgumentTypes

      public ArgumentTypes()
  • Method Details

    • register

      public static <T extends com.mojang.brigadier.arguments.ArgumentType<?>> void register(String p_121602_, Class<T> p_121603_, ArgumentSerializer<T> p_121604_)
    • bootStrap

      public static void bootStrap()
    • fixClassType

      private static <T extends com.mojang.brigadier.arguments.ArgumentType<?>> Class<T> fixClassType(Class<? super T> p_211032_)
    • get

      @Nullable private static ArgumentTypes.Entry<?> get(ResourceLocation p_121615_)
    • get

      @Nullable private static ArgumentTypes.Entry<?> get(com.mojang.brigadier.arguments.ArgumentType<?> p_121617_)
    • serialize

      public static <T extends com.mojang.brigadier.arguments.ArgumentType<?>> void serialize(FriendlyByteBuf p_121612_, T p_121613_)
    • deserialize

      @Nullable public static com.mojang.brigadier.arguments.ArgumentType<?> deserialize(FriendlyByteBuf p_121610_)
    • serializeToJson

      private static <T extends com.mojang.brigadier.arguments.ArgumentType<?>> void serializeToJson(com.google.gson.JsonObject p_121588_, T p_121589_)
    • serializeNodeToJson

      public static <S> com.google.gson.JsonObject serializeNodeToJson(com.mojang.brigadier.CommandDispatcher<S> p_121591_, com.mojang.brigadier.tree.CommandNode<S> p_121592_)
    • isTypeRegistered

      public static boolean isTypeRegistered(com.mojang.brigadier.arguments.ArgumentType<?> p_121594_)
    • findUsedArgumentTypes

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

      private static <T> void findUsedArgumentTypes(com.mojang.brigadier.tree.CommandNode<T> p_121598_, Set<com.mojang.brigadier.arguments.ArgumentType<?>> p_121599_, Set<com.mojang.brigadier.tree.CommandNode<T>> p_121600_)
    • getId

      @Nullable public static ResourceLocation getId(com.mojang.brigadier.arguments.ArgumentType<?> type)