Class ArgumentTypes

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

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

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Lft;a:Lorg/apache/logging/log4j/Logger;
      intermediary field_10923 Lnet/minecraft/class_2316;field_10923:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/command/argument/ArgumentTypes;LOGGER:Lorg/apache/logging/log4j/Logger;
    • classMap

      private static final Map<Class<?>,​ArgumentTypes.Entry<?>> classMap
      Mappings:
      Namespace Name Mixin selector
      official b Lft;b:Ljava/util/Map;
      intermediary field_10921 Lnet/minecraft/class_2316;field_10921:Ljava/util/Map;
      named classMap Lnet/minecraft/command/argument/ArgumentTypes;classMap:Ljava/util/Map;
    • idMap

      private static final Map<Identifier,​ArgumentTypes.Entry<?>> idMap
      Mappings:
      Namespace Name Mixin selector
      official c Lft;c:Ljava/util/Map;
      intermediary field_10922 Lnet/minecraft/class_2316;field_10922:Ljava/util/Map;
      named idMap Lnet/minecraft/command/argument/ArgumentTypes;idMap:Ljava/util/Map;
  • Constructor Details

    • ArgumentTypes

      public ArgumentTypes()
  • Method Details

    • register

      public static <T extends com.mojang.brigadier.arguments.ArgumentType<?>> void register(String id, Class<T> class2, ArgumentSerializer<T> argumentSerializer)
      Registers an argument type's serializer.
      Parameters:
      id - the id of the argument type
      Mappings:
      Namespace Name Mixin selector
      official a Lft;a(Ljava/lang/String;Ljava/lang/Class;Lfs;)V
      intermediary method_10017 Lnet/minecraft/class_2316;method_10017(Ljava/lang/String;Ljava/lang/Class;Lnet/minecraft/class_2314;)V
      named register Lnet/minecraft/command/argument/ArgumentTypes;register(Ljava/lang/String;Ljava/lang/Class;Lnet/minecraft/command/argument/serialize/ArgumentSerializer;)V
    • register

      public static void register()
      Mappings:
      Namespace Name Mixin selector
      official a Lft;a()V
      intermediary method_10015 Lnet/minecraft/class_2316;method_10015()V
      named register Lnet/minecraft/command/argument/ArgumentTypes;register()V
    • byId

      @Nullable private static @Nullable ArgumentTypes.Entry<?> byId(Identifier id)
      Mappings:
      Namespace Name Mixin selector
      official a Lft;a(Lww;)Lft$a;
      intermediary method_10018 Lnet/minecraft/class_2316;method_10018(Lnet/minecraft/class_2960;)Lnet/minecraft/class_2316$class_2317;
      named byId Lnet/minecraft/command/argument/ArgumentTypes;byId(Lnet/minecraft/util/Identifier;)Lnet/minecraft/command/argument/ArgumentTypes$Entry;
    • byClass

      @Nullable private static @Nullable ArgumentTypes.Entry<?> byClass(com.mojang.brigadier.arguments.ArgumentType<?> argumentType)
      Mappings:
      Namespace Name Mixin selector
      official b Lft;b(Lcom/mojang/brigadier/arguments/ArgumentType;)Lft$a;
      intermediary method_10013 Lnet/minecraft/class_2316;method_10013(Lcom/mojang/brigadier/arguments/ArgumentType;)Lnet/minecraft/class_2316$class_2317;
      named byClass Lnet/minecraft/command/argument/ArgumentTypes;byClass(Lcom/mojang/brigadier/arguments/ArgumentType;)Lnet/minecraft/command/argument/ArgumentTypes$Entry;
    • toPacket

      public static <T extends com.mojang.brigadier.arguments.ArgumentType<?>> void toPacket(PacketByteBuf packetByteBuf, T t)
      Mappings:
      Namespace Name Mixin selector
      official a Lft;a(Log;Lcom/mojang/brigadier/arguments/ArgumentType;)V
      intermediary method_10019 Lnet/minecraft/class_2316;method_10019(Lnet/minecraft/class_2540;Lcom/mojang/brigadier/arguments/ArgumentType;)V
      named toPacket Lnet/minecraft/command/argument/ArgumentTypes;toPacket(Lnet/minecraft/network/PacketByteBuf;Lcom/mojang/brigadier/arguments/ArgumentType;)V
    • fromPacket

      @Nullable public static @Nullable com.mojang.brigadier.arguments.ArgumentType<?> fromPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official a Lft;a(Log;)Lcom/mojang/brigadier/arguments/ArgumentType;
      intermediary method_10014 Lnet/minecraft/class_2316;method_10014(Lnet/minecraft/class_2540;)Lcom/mojang/brigadier/arguments/ArgumentType;
      named fromPacket Lnet/minecraft/command/argument/ArgumentTypes;fromPacket(Lnet/minecraft/network/PacketByteBuf;)Lcom/mojang/brigadier/arguments/ArgumentType;
    • toJson

      private static <T extends com.mojang.brigadier.arguments.ArgumentType<?>> void toJson(JsonObject jsonObject, T t)
      Mappings:
      Namespace Name Mixin selector
      official a Lft;a(Lcom/google/gson/JsonObject;Lcom/mojang/brigadier/arguments/ArgumentType;)V
      intermediary method_10020 Lnet/minecraft/class_2316;method_10020(Lcom/google/gson/JsonObject;Lcom/mojang/brigadier/arguments/ArgumentType;)V
      named toJson Lnet/minecraft/command/argument/ArgumentTypes;toJson(Lcom/google/gson/JsonObject;Lcom/mojang/brigadier/arguments/ArgumentType;)V
    • toJson

      public static <S> JsonObject toJson(com.mojang.brigadier.CommandDispatcher<S> commandDispatcher, com.mojang.brigadier.tree.CommandNode<S> commandNode)
      Mappings:
      Namespace Name Mixin selector
      official a Lft;a(Lcom/mojang/brigadier/CommandDispatcher;Lcom/mojang/brigadier/tree/CommandNode;)Lcom/google/gson/JsonObject;
      intermediary method_10016 Lnet/minecraft/class_2316;method_10016(Lcom/mojang/brigadier/CommandDispatcher;Lcom/mojang/brigadier/tree/CommandNode;)Lcom/google/gson/JsonObject;
      named toJson Lnet/minecraft/command/argument/ArgumentTypes;toJson(Lcom/mojang/brigadier/CommandDispatcher;Lcom/mojang/brigadier/tree/CommandNode;)Lcom/google/gson/JsonObject;
    • hasClass

      public static boolean hasClass(com.mojang.brigadier.arguments.ArgumentType<?> argumentType)
      Mappings:
      Namespace Name Mixin selector
      official a Lft;a(Lcom/mojang/brigadier/arguments/ArgumentType;)Z
      intermediary method_30923 Lnet/minecraft/class_2316;method_30923(Lcom/mojang/brigadier/arguments/ArgumentType;)Z
      named hasClass Lnet/minecraft/command/argument/ArgumentTypes;hasClass(Lcom/mojang/brigadier/arguments/ArgumentType;)Z
    • getAllArgumentTypes

      public static <T> Set<com.mojang.brigadier.arguments.ArgumentType<?>> getAllArgumentTypes(com.mojang.brigadier.tree.CommandNode<T> node)
      Mappings:
      Namespace Name Mixin selector
      official a Lft;a(Lcom/mojang/brigadier/tree/CommandNode;)Ljava/util/Set;
      intermediary method_30924 Lnet/minecraft/class_2316;method_30924(Lcom/mojang/brigadier/tree/CommandNode;)Ljava/util/Set;
      named getAllArgumentTypes Lnet/minecraft/command/argument/ArgumentTypes;getAllArgumentTypes(Lcom/mojang/brigadier/tree/CommandNode;)Ljava/util/Set;
    • getAllArgumentTypes

      private static <T> void getAllArgumentTypes(com.mojang.brigadier.tree.CommandNode<T> node, Set<com.mojang.brigadier.arguments.ArgumentType<?>> argumentTypes, Set<com.mojang.brigadier.tree.CommandNode<T>> ignoredNodes)
      Mappings:
      Namespace Name Mixin selector
      official a Lft;a(Lcom/mojang/brigadier/tree/CommandNode;Ljava/util/Set;Ljava/util/Set;)V
      intermediary method_30925 Lnet/minecraft/class_2316;method_30925(Lcom/mojang/brigadier/tree/CommandNode;Ljava/util/Set;Ljava/util/Set;)V
      named getAllArgumentTypes Lnet/minecraft/command/argument/ArgumentTypes;getAllArgumentTypes(Lcom/mojang/brigadier/tree/CommandNode;Ljava/util/Set;Ljava/util/Set;)V