Package net.minecraft.command.argument
Class ArgumentHelper
java.lang.Object
net.minecraft.command.argument.ArgumentHelper
- Mappings:
Namespace Name official gh
intermediary net/minecraft/class_7218
named net/minecraft/command/argument/ArgumentHelper
-
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 official a
Lgh;a:Lorg/slf4j/Logger;
intermediary field_37975
Lnet/minecraft/class_7218;field_37975:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/command/argument/ArgumentHelper;LOGGER:Lorg/slf4j/Logger;
-
MIN_FLAG
private static final byte MIN_FLAG- See Also:
- Mappings:
Namespace Name Mixin selector official b
Lgh;b:B
intermediary field_37976
Lnet/minecraft/class_7218;field_37976:B
named MIN_FLAG
Lnet/minecraft/command/argument/ArgumentHelper;MIN_FLAG:B
-
MAX_FLAG
private static final byte MAX_FLAG- See Also:
- Mappings:
Namespace Name Mixin selector official c
Lgh;c:B
intermediary field_37977
Lnet/minecraft/class_7218;field_37977:B
named MAX_FLAG
Lnet/minecraft/command/argument/ArgumentHelper;MAX_FLAG:B
-
-
Constructor Details
-
ArgumentHelper
public ArgumentHelper()
-
-
Method Details
-
getMinMaxFlag
public static int getMinMaxFlag(boolean hasMin, boolean hasMax) - Mappings:
Namespace Name Mixin selector official a
Lgh;a(ZZ)I
intermediary method_41994
Lnet/minecraft/class_7218;method_41994(ZZ)I
named getMinMaxFlag
Lnet/minecraft/command/argument/ArgumentHelper;getMinMaxFlag(ZZ)I
-
hasMinFlag
public static boolean hasMinFlag(byte flags) - Mappings:
Namespace Name Mixin selector official a
Lgh;a(B)Z
intermediary method_41986
Lnet/minecraft/class_7218;method_41986(B)Z
named hasMinFlag
Lnet/minecraft/command/argument/ArgumentHelper;hasMinFlag(B)Z
-
hasMaxFlag
public static boolean hasMaxFlag(byte flags) - Mappings:
Namespace Name Mixin selector official b
Lgh;b(B)Z
intermediary method_41995
Lnet/minecraft/class_7218;method_41995(B)Z
named hasMaxFlag
Lnet/minecraft/command/argument/ArgumentHelper;hasMaxFlag(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 official a
Lgh;a(Lcom/google/gson/JsonObject;Lgf$a;)V
intermediary method_41988
Lnet/minecraft/class_7218;method_41988(Lcom/google/gson/JsonObject;Lnet/minecraft/class_2314$class_7217;)V
named writeArgumentProperties
Lnet/minecraft/command/argument/ArgumentHelper;writeArgumentProperties(Lcom/google/gson/JsonObject;Lnet/minecraft/command/argument/serialize/ArgumentSerializer$ArgumentTypeProperties;)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 official a
Lgh;a(Lcom/google/gson/JsonObject;Lgf;Lgf$a;)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
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
-
writeArgument
private static <T extends com.mojang.brigadier.arguments.ArgumentType<?>> void writeArgument(JsonObject json, T argumentType) - Mappings:
Namespace Name Mixin selector official a
Lgh;a(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
named writeArgument
Lnet/minecraft/command/argument/ArgumentHelper;writeArgument(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 official a
Lgh;a(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;
named toJson
Lnet/minecraft/command/argument/ArgumentHelper;toJson(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 official a
Lgh;a(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;
named collectUsedArgumentTypes
Lnet/minecraft/command/argument/ArgumentHelper;collectUsedArgumentTypes(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 official a
Lgh;a(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
named collectUsedArgumentTypes
Lnet/minecraft/command/argument/ArgumentHelper;collectUsedArgumentTypes(Lcom/mojang/brigadier/tree/CommandNode;Ljava/util/Set;Ljava/util/Set;)V
-