Class ArgumentTypes

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

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

    • CLASS_MAP

      private static final Map<Class<?>,ArgumentSerializer<?,?>> CLASS_MAP
      Mappings:
      Namespace Name Mixin selector
      named CLASS_MAP Lnet/minecraft/command/argument/ArgumentTypes;CLASS_MAP:Ljava/util/Map;
      intermediary field_10921 Lnet/minecraft/class_2316;field_10921:Ljava/util/Map;
      official a Lit;a: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
      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;
      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;
      official a Lit;a(Lkd;Ljava/lang/String;Ljava/lang/Class;Lis;)Lis;
    • register

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

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

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

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

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