Package net.minecraft.command.argument
Class ArgumentHelper
java.lang.Object
net.minecraft.command.argument.ArgumentHelper
- Mappings:
Namespace Name named net/minecraft/command/argument/ArgumentHelper
intermediary net/minecraft/class_7218
official iq
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Set
<com.mojang.brigadier.arguments.ArgumentType<?>> collectUsedArgumentTypes
(com.mojang.brigadier.tree.CommandNode<T> rootNode) private static <T> void
collectUsedArgumentTypes
(com.mojang.brigadier.tree.CommandNode<T> node, Set<com.mojang.brigadier.arguments.ArgumentType<?>> usedArgumentTypes, Set<com.mojang.brigadier.tree.CommandNode<T>> visitedNodes) static int
getMinMaxFlag
(boolean hasMin, boolean hasMax) static boolean
hasMaxFlag
(byte flags) static boolean
hasMinFlag
(byte flags) static <S> JsonObject
toJson
(com.mojang.brigadier.CommandDispatcher<S> dispatcher, com.mojang.brigadier.tree.CommandNode<S> rootNode) private static <T extends com.mojang.brigadier.arguments.ArgumentType<?>>
voidwriteArgument
(JsonObject json, T argumentType) private static <A extends com.mojang.brigadier.arguments.ArgumentType<?>>
voidwriteArgumentProperties
(JsonObject json, ArgumentSerializer.ArgumentTypeProperties<A> properties) private static <A extends com.mojang.brigadier.arguments.ArgumentType<?>,
T extends ArgumentSerializer.ArgumentTypeProperties<A>>
voidwriteArgumentProperties
(JsonObject json, ArgumentSerializer<A, T> serializer, ArgumentSerializer.ArgumentTypeProperties<A> properties)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/command/argument/ArgumentHelper;LOGGER:Lorg/slf4j/Logger;
intermediary field_37975
Lnet/minecraft/class_7218;field_37975:Lorg/slf4j/Logger;
official a
Liq;a:Lorg/slf4j/Logger;
-
MIN_FLAG
private static final byte MIN_FLAG- See Also:
- Mappings:
Namespace Name Mixin selector named MIN_FLAG
Lnet/minecraft/command/argument/ArgumentHelper;MIN_FLAG:B
intermediary field_37976
Lnet/minecraft/class_7218;field_37976:B
official b
Liq;b:B
-
MAX_FLAG
private static final byte MAX_FLAG- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_FLAG
Lnet/minecraft/command/argument/ArgumentHelper;MAX_FLAG:B
intermediary field_37977
Lnet/minecraft/class_7218;field_37977:B
official c
Liq;c:B
-
-
Constructor Details
-
ArgumentHelper
public ArgumentHelper()
-
-
Method Details
-
getMinMaxFlag
public static int getMinMaxFlag(boolean hasMin, boolean hasMax) - Mappings:
Namespace Name Mixin selector named getMinMaxFlag
Lnet/minecraft/command/argument/ArgumentHelper;getMinMaxFlag(ZZ)I
intermediary method_41994
Lnet/minecraft/class_7218;method_41994(ZZ)I
official a
Liq;a(ZZ)I
-
hasMinFlag
public static boolean hasMinFlag(byte flags) - Mappings:
Namespace Name Mixin selector named hasMinFlag
Lnet/minecraft/command/argument/ArgumentHelper;hasMinFlag(B)Z
intermediary method_41986
Lnet/minecraft/class_7218;method_41986(B)Z
official a
Liq;a(B)Z
-
hasMaxFlag
public static boolean hasMaxFlag(byte flags) - Mappings:
Namespace Name Mixin selector named hasMaxFlag
Lnet/minecraft/command/argument/ArgumentHelper;hasMaxFlag(B)Z
intermediary method_41995
Lnet/minecraft/class_7218;method_41995(B)Z
official b
Liq;b(B)Z
-
writeArgumentProperties
private static <A extends com.mojang.brigadier.arguments.ArgumentType<?>> void writeArgumentProperties(JsonObject json, ArgumentSerializer.ArgumentTypeProperties<A> properties) - Mappings:
Namespace Name Mixin selector named writeArgumentProperties
Lnet/minecraft/command/argument/ArgumentHelper;writeArgumentProperties(Lcom/google/gson/JsonObject;Lnet/minecraft/command/argument/serialize/ArgumentSerializer$ArgumentTypeProperties;)V
intermediary method_41988
Lnet/minecraft/class_7218;method_41988(Lcom/google/gson/JsonObject;Lnet/minecraft/class_2314$class_7217;)V
official a
Liq;a(Lcom/google/gson/JsonObject;Lio$a;)V
-
writeArgumentProperties
private static <A extends com.mojang.brigadier.arguments.ArgumentType<?>,T extends ArgumentSerializer.ArgumentTypeProperties<A>> void writeArgumentProperties(JsonObject json, ArgumentSerializer<A, T> serializer, ArgumentSerializer.ArgumentTypeProperties<A> properties) - Mappings:
Namespace Name Mixin selector named writeArgumentProperties
Lnet/minecraft/command/argument/ArgumentHelper;writeArgumentProperties(Lcom/google/gson/JsonObject;Lnet/minecraft/command/argument/serialize/ArgumentSerializer;Lnet/minecraft/command/argument/serialize/ArgumentSerializer$ArgumentTypeProperties;)V
intermediary method_41989
Lnet/minecraft/class_7218;method_41989(Lcom/google/gson/JsonObject;Lnet/minecraft/class_2314;Lnet/minecraft/class_2314$class_7217;)V
official a
Liq;a(Lcom/google/gson/JsonObject;Lio;Lio$a;)V
-
writeArgument
private static <T extends com.mojang.brigadier.arguments.ArgumentType<?>> void writeArgument(JsonObject json, T argumentType) - Mappings:
Namespace Name Mixin selector named writeArgument
Lnet/minecraft/command/argument/ArgumentHelper;writeArgument(Lcom/google/gson/JsonObject;Lcom/mojang/brigadier/arguments/ArgumentType;)V
intermediary method_41987
Lnet/minecraft/class_7218;method_41987(Lcom/google/gson/JsonObject;Lcom/mojang/brigadier/arguments/ArgumentType;)V
official a
Liq;a(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> rootNode) - Mappings:
Namespace Name Mixin selector named toJson
Lnet/minecraft/command/argument/ArgumentHelper;toJson(Lcom/mojang/brigadier/CommandDispatcher;Lcom/mojang/brigadier/tree/CommandNode;)Lcom/google/gson/JsonObject;
intermediary method_41990
Lnet/minecraft/class_7218;method_41990(Lcom/mojang/brigadier/CommandDispatcher;Lcom/mojang/brigadier/tree/CommandNode;)Lcom/google/gson/JsonObject;
official a
Liq;a(Lcom/mojang/brigadier/CommandDispatcher;Lcom/mojang/brigadier/tree/CommandNode;)Lcom/google/gson/JsonObject;
-
collectUsedArgumentTypes
public static <T> Set<com.mojang.brigadier.arguments.ArgumentType<?>> collectUsedArgumentTypes(com.mojang.brigadier.tree.CommandNode<T> rootNode) - Mappings:
Namespace Name Mixin selector named collectUsedArgumentTypes
Lnet/minecraft/command/argument/ArgumentHelper;collectUsedArgumentTypes(Lcom/mojang/brigadier/tree/CommandNode;)Ljava/util/Set;
intermediary method_41991
Lnet/minecraft/class_7218;method_41991(Lcom/mojang/brigadier/tree/CommandNode;)Ljava/util/Set;
official a
Liq;a(Lcom/mojang/brigadier/tree/CommandNode;)Ljava/util/Set;
-
collectUsedArgumentTypes
private static <T> void collectUsedArgumentTypes(com.mojang.brigadier.tree.CommandNode<T> node, Set<com.mojang.brigadier.arguments.ArgumentType<?>> usedArgumentTypes, Set<com.mojang.brigadier.tree.CommandNode<T>> visitedNodes) - Mappings:
Namespace Name Mixin selector named collectUsedArgumentTypes
Lnet/minecraft/command/argument/ArgumentHelper;collectUsedArgumentTypes(Lcom/mojang/brigadier/tree/CommandNode;Ljava/util/Set;Ljava/util/Set;)V
intermediary method_41992
Lnet/minecraft/class_7218;method_41992(Lcom/mojang/brigadier/tree/CommandNode;Ljava/util/Set;Ljava/util/Set;)V
official a
Liq;a(Lcom/mojang/brigadier/tree/CommandNode;Ljava/util/Set;Ljava/util/Set;)V
-