Class ArgumentTypes


  • public class ArgumentTypes
    extends java.lang.Object
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      (package private) static class  ArgumentTypes.Entry<T extends com.mojang.brigadier.arguments.ArgumentType<?>>  
    • Constructor Summary

      Constructors 
      Constructor Description
      ArgumentTypes()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void bootStrap()  
      static com.mojang.brigadier.arguments.ArgumentType<?> deserialize​(PacketBuffer p_197486_0_)  
      static <T> java.util.Set<com.mojang.brigadier.arguments.ArgumentType<?>> findUsedArgumentTypes​(com.mojang.brigadier.tree.CommandNode<T> p_243511_0_)  
      private static <T> void findUsedArgumentTypes​(com.mojang.brigadier.tree.CommandNode<T> p_243512_0_, java.util.Set<com.mojang.brigadier.arguments.ArgumentType<?>> p_243512_1_, java.util.Set<com.mojang.brigadier.tree.CommandNode<T>> p_243512_2_)  
      private static ArgumentTypes.Entry<?> get​(com.mojang.brigadier.arguments.ArgumentType<?> p_201040_0_)  
      private static ArgumentTypes.Entry<?> get​(ResourceLocation p_197482_0_)  
      static ResourceLocation getId​(com.mojang.brigadier.arguments.ArgumentType<?> type)  
      static boolean isTypeRegistered​(com.mojang.brigadier.arguments.ArgumentType<?> p_243510_0_)  
      static <T extends com.mojang.brigadier.arguments.ArgumentType<?>>
      void
      register​(java.lang.String p_218136_0_, java.lang.Class<T> p_218136_1_, IArgumentSerializer<T> p_218136_2_)  
      static <T extends com.mojang.brigadier.arguments.ArgumentType<?>>
      void
      serialize​(PacketBuffer p_197484_0_, T p_197484_1_)  
      static <S> com.google.gson.JsonObject serializeNodeToJson​(com.mojang.brigadier.CommandDispatcher<S> p_200388_0_, com.mojang.brigadier.tree.CommandNode<S> p_200388_1_)  
      private static <T extends com.mojang.brigadier.arguments.ArgumentType<?>>
      void
      serializeToJson​(com.google.gson.JsonObject p_201042_0_, T p_201042_1_)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ArgumentTypes

        public ArgumentTypes()
    • Method Detail

      • register

        public static <T extends com.mojang.brigadier.arguments.ArgumentType<?>> void register​(java.lang.String p_218136_0_,
                                                                                               java.lang.Class<T> p_218136_1_,
                                                                                               IArgumentSerializer<T> p_218136_2_)
      • bootStrap

        public static void bootStrap()
      • get

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

        public static <T extends com.mojang.brigadier.arguments.ArgumentType<?>> void serialize​(PacketBuffer p_197484_0_,
                                                                                                T p_197484_1_)
      • deserialize

        @Nullable
        public static com.mojang.brigadier.arguments.ArgumentType<?> deserialize​(PacketBuffer p_197486_0_)
      • serializeToJson

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

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

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

        public static <T> java.util.Set<com.mojang.brigadier.arguments.ArgumentType<?>> findUsedArgumentTypes​(com.mojang.brigadier.tree.CommandNode<T> p_243511_0_)
      • findUsedArgumentTypes

        private static <T> void findUsedArgumentTypes​(com.mojang.brigadier.tree.CommandNode<T> p_243512_0_,
                                                      java.util.Set<com.mojang.brigadier.arguments.ArgumentType<?>> p_243512_1_,
                                                      java.util.Set<com.mojang.brigadier.tree.CommandNode<T>> p_243512_2_)
      • getId

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