Package net.minecraft.command.argument
Class ArgumentTypes
java.lang.Object
net.minecraft.command.argument.ArgumentTypes
- Mappings:
Namespace Name official fu
intermediary net/minecraft/class_2316
named net/minecraft/command/argument/ArgumentTypes
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static class
ArgumentTypes.Entry<T extends com.mojang.brigadier.arguments.ArgumentType<?>>
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Map<Class<?>,
ArgumentTypes.Entry<?>> private static final Map<Identifier,
ArgumentTypes.Entry<?>> private static final Logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static @Nullable ArgumentTypes.Entry<?>
byClass
(com.mojang.brigadier.arguments.ArgumentType<?> type) private static @Nullable ArgumentTypes.Entry<?>
byId
(Identifier id) static @Nullable com.mojang.brigadier.arguments.ArgumentType<?>
fromPacket
(PacketByteBuf buf) static <T> Set<com.mojang.brigadier.arguments.ArgumentType<?>>
getAllArgumentTypes
(com.mojang.brigadier.tree.CommandNode<T> node) 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) static boolean
hasClass
(com.mojang.brigadier.arguments.ArgumentType<?> type) static void
register()
static <T extends com.mojang.brigadier.arguments.ArgumentType<?>>
voidregister
(String id, Class<T> argClass, ArgumentSerializer<T> serializer) Registers an argument type's serializer.private static <T extends com.mojang.brigadier.arguments.ArgumentType<?>>
voidtoJson
(JsonObject json, T type) static <S> JsonObject
toJson
(com.mojang.brigadier.CommandDispatcher<S> dispatcher, com.mojang.brigadier.tree.CommandNode<S> commandNode) static <T extends com.mojang.brigadier.arguments.ArgumentType<?>>
voidtoPacket
(PacketByteBuf buf, T type)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Lfu;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;
-
CLASS_MAP
- Mappings:
Namespace Name Mixin selector official b
Lfu;b: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;
-
ID_MAP
- Mappings:
Namespace Name Mixin selector official c
Lfu;c:Ljava/util/Map;
intermediary field_10922
Lnet/minecraft/class_2316;field_10922:Ljava/util/Map;
named ID_MAP
Lnet/minecraft/command/argument/ArgumentTypes;ID_MAP: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> argClass, ArgumentSerializer<T> serializer) Registers an argument type's serializer.- Parameters:
id
- the id of the argument type- Mappings:
Namespace Name Mixin selector official a
Lfu;a(Ljava/lang/String;Ljava/lang/Class;Lft;)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
Lfu;a()V
intermediary method_10015
Lnet/minecraft/class_2316;method_10015()V
named register
Lnet/minecraft/command/argument/ArgumentTypes;register()V
-
byId
- Mappings:
Namespace Name Mixin selector official a
Lfu;a(Lyb;)Lfu$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<?> type) - Mappings:
Namespace Name Mixin selector official b
Lfu;b(Lcom/mojang/brigadier/arguments/ArgumentType;)Lfu$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 buf, T type) - Mappings:
Namespace Name Mixin selector official a
Lfu;a(Lph;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
Lfu;a(Lph;)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 json, T type) - Mappings:
Namespace Name Mixin selector official a
Lfu;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> dispatcher, com.mojang.brigadier.tree.CommandNode<S> commandNode) - Mappings:
Namespace Name Mixin selector official a
Lfu;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<?> type) - Mappings:
Namespace Name Mixin selector official a
Lfu;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
Lfu;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
Lfu;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
-