Class ArgumentTypes
java.lang.Object
net.minecraft.commands.synchronization.ArgumentTypes
-
Nested Class Summary
Modifier and TypeClassDescription(package private) 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<ResourceLocation,
ArgumentTypes.Entry<?>> private static final org.slf4j.Logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static com.mojang.brigadier.arguments.ArgumentType<?>
deserialize
(FriendlyByteBuf p_121610_) static <T> Set<com.mojang.brigadier.arguments.ArgumentType<?>>
findUsedArgumentTypes
(com.mojang.brigadier.tree.CommandNode<T> p_121596_) private static <T> void
findUsedArgumentTypes
(com.mojang.brigadier.tree.CommandNode<T> p_121598_, Set<com.mojang.brigadier.arguments.ArgumentType<?>> p_121599_, Set<com.mojang.brigadier.tree.CommandNode<T>> p_121600_) private static <T extends com.mojang.brigadier.arguments.ArgumentType<?>>
Class<T>fixClassType
(Class<? super T> p_211032_) private static ArgumentTypes.Entry<?>
get
(com.mojang.brigadier.arguments.ArgumentType<?> p_121617_) private static ArgumentTypes.Entry<?>
get
(ResourceLocation p_121615_) static ResourceLocation
getId
(com.mojang.brigadier.arguments.ArgumentType<?> type) static boolean
isTypeRegistered
(com.mojang.brigadier.arguments.ArgumentType<?> p_121594_) static <T extends com.mojang.brigadier.arguments.ArgumentType<?>>
voidregister
(String p_121602_, Class<T> p_121603_, ArgumentSerializer<T> p_121604_) static <T extends com.mojang.brigadier.arguments.ArgumentType<?>>
voidserialize
(FriendlyByteBuf p_121612_, T p_121613_) static <S> com.google.gson.JsonObject
serializeNodeToJson
(com.mojang.brigadier.CommandDispatcher<S> p_121591_, com.mojang.brigadier.tree.CommandNode<S> p_121592_) private static <T extends com.mojang.brigadier.arguments.ArgumentType<?>>
voidserializeToJson
(com.google.gson.JsonObject p_121588_, T p_121589_)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
BY_CLASS
-
BY_NAME
-
-
Constructor Details
-
ArgumentTypes
public ArgumentTypes()
-
-
Method Details
-
register
public static <T extends com.mojang.brigadier.arguments.ArgumentType<?>> void register(String p_121602_, Class<T> p_121603_, ArgumentSerializer<T> p_121604_) -
bootStrap
public static void bootStrap() -
fixClassType
-
get
-
get
@Nullable private static ArgumentTypes.Entry<?> get(com.mojang.brigadier.arguments.ArgumentType<?> p_121617_) -
serialize
public static <T extends com.mojang.brigadier.arguments.ArgumentType<?>> void serialize(FriendlyByteBuf p_121612_, T p_121613_) -
deserialize
@Nullable public static com.mojang.brigadier.arguments.ArgumentType<?> deserialize(FriendlyByteBuf p_121610_) -
serializeToJson
private static <T extends com.mojang.brigadier.arguments.ArgumentType<?>> void serializeToJson(com.google.gson.JsonObject p_121588_, T p_121589_) -
serializeNodeToJson
public static <S> com.google.gson.JsonObject serializeNodeToJson(com.mojang.brigadier.CommandDispatcher<S> p_121591_, com.mojang.brigadier.tree.CommandNode<S> p_121592_) -
isTypeRegistered
public static boolean isTypeRegistered(com.mojang.brigadier.arguments.ArgumentType<?> p_121594_) -
findUsedArgumentTypes
public static <T> Set<com.mojang.brigadier.arguments.ArgumentType<?>> findUsedArgumentTypes(com.mojang.brigadier.tree.CommandNode<T> p_121596_) -
findUsedArgumentTypes
-
getId
-