Class ArgumentTypes

java.lang.Object
net.minecraft.command.argument.ArgumentTypes

public class ArgumentTypes extends Object
Mappings:
Namespace Name
official gh
intermediary net/minecraft/class_2316
named net/minecraft/command/argument/ArgumentTypes
  • Field Details

    • CLASS_MAP

      private static final Map<Class<?>,ArgumentSerializer<?,?>> CLASS_MAP
      Mappings:
      Namespace Name Mixin selector
      official a Lgh;a:Ljava/util/Map;
      intermediary field_10921 Lnet/minecraft/class_2316;field_10921:Ljava/util/Map;
      named CLASS_MAP Lnet/minecraft/command/argument/ArgumentTypes;CLASS_MAP:Ljava/util/Map;
  • Constructor Details

    • ArgumentTypes

      public ArgumentTypes()
  • Method Details

    • register

      private static <A extends com.mojang.brigadier.arguments.ArgumentType<?>, T extends ArgumentSerializer.ArgumentTypeProperties<A>> ArgumentSerializer<A,T> register(Registry<ArgumentSerializer<?,?>> registry, String id, Class<? extends A> clazz, ArgumentSerializer<A,T> serializer)
      Registers an argument type's serializer.
      Mappings:
      Namespace Name Mixin selector
      official a Lgh;a(Lhr;Ljava/lang/String;Ljava/lang/Class;Lgg;)Lgg;
      intermediary method_10017 Lnet/minecraft/class_2316;method_10017(Lnet/minecraft/class_2378;Ljava/lang/String;Ljava/lang/Class;Lnet/minecraft/class_2314;)Lnet/minecraft/class_2314;
      named register Lnet/minecraft/command/argument/ArgumentTypes;register(Lnet/minecraft/registry/Registry;Ljava/lang/String;Ljava/lang/Class;Lnet/minecraft/command/argument/serialize/ArgumentSerializer;)Lnet/minecraft/command/argument/serialize/ArgumentSerializer;
    • register

      public static ArgumentSerializer<?,?> register(Registry<ArgumentSerializer<?,?>> registry)
      Mappings:
      Namespace Name Mixin selector
      official a Lgh;a(Lhr;)Lgg;
      intermediary method_10015 Lnet/minecraft/class_2316;method_10015(Lnet/minecraft/class_2378;)Lnet/minecraft/class_2314;
      named register Lnet/minecraft/command/argument/ArgumentTypes;register(Lnet/minecraft/registry/Registry;)Lnet/minecraft/command/argument/serialize/ArgumentSerializer;
    • upcast

      private static <T extends com.mojang.brigadier.arguments.ArgumentType<?>> Class<T> upcast(Class<? super T> clazz)
      Mappings:
      Namespace Name Mixin selector
      official b Lgh;b(Ljava/lang/Class;)Ljava/lang/Class;
      intermediary method_41181 Lnet/minecraft/class_2316;method_41181(Ljava/lang/Class;)Ljava/lang/Class;
      named upcast Lnet/minecraft/command/argument/ArgumentTypes;upcast(Ljava/lang/Class;)Ljava/lang/Class;
    • has

      public static boolean has(Class<?> clazz)
      Mappings:
      Namespace Name Mixin selector
      official a Lgh;a(Ljava/lang/Class;)Z
      intermediary method_41984 Lnet/minecraft/class_2316;method_41984(Ljava/lang/Class;)Z
      named has Lnet/minecraft/command/argument/ArgumentTypes;has(Ljava/lang/Class;)Z
    • get

      public static <A extends com.mojang.brigadier.arguments.ArgumentType<?>> ArgumentSerializer<A,?> get(A argumentType)
      Mappings:
      Namespace Name Mixin selector
      official a Lgh;a(Lcom/mojang/brigadier/arguments/ArgumentType;)Lgg;
      intermediary method_41983 Lnet/minecraft/class_2316;method_41983(Lcom/mojang/brigadier/arguments/ArgumentType;)Lnet/minecraft/class_2314;
      named get Lnet/minecraft/command/argument/ArgumentTypes;get(Lcom/mojang/brigadier/arguments/ArgumentType;)Lnet/minecraft/command/argument/serialize/ArgumentSerializer;
    • getArgumentTypeProperties

      public static <A extends com.mojang.brigadier.arguments.ArgumentType<?>> ArgumentSerializer.ArgumentTypeProperties<A> getArgumentTypeProperties(A argumentType)
      Mappings:
      Namespace Name Mixin selector
      official b Lgh;b(Lcom/mojang/brigadier/arguments/ArgumentType;)Lgg$a;
      intermediary method_41985 Lnet/minecraft/class_2316;method_41985(Lcom/mojang/brigadier/arguments/ArgumentType;)Lnet/minecraft/class_2314$class_7217;
      named getArgumentTypeProperties Lnet/minecraft/command/argument/ArgumentTypes;getArgumentTypeProperties(Lcom/mojang/brigadier/arguments/ArgumentType;)Lnet/minecraft/command/argument/serialize/ArgumentSerializer$ArgumentTypeProperties;