Package net.minecraft.command.arguments
Class ArgumentTypes
- java.lang.Object
-
- net.minecraft.command.arguments.ArgumentTypes
-
public class ArgumentTypes extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
ArgumentTypes.Entry<T extends com.mojang.brigadier.arguments.ArgumentType<?>>
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Map<java.lang.Class<?>,ArgumentTypes.Entry<?>>
BY_CLASS
private static java.util.Map<ResourceLocation,ArgumentTypes.Entry<?>>
BY_NAME
private static org.apache.logging.log4j.Logger
LOGGER
-
Constructor Summary
Constructors Constructor Description ArgumentTypes()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
bootStrap()
static com.mojang.brigadier.arguments.ArgumentType<?>
deserialize(PacketBuffer p_197486_0_)
static <T> java.util.Set<com.mojang.brigadier.arguments.ArgumentType<?>>
findUsedArgumentTypes(com.mojang.brigadier.tree.CommandNode<T> p_243511_0_)
private static <T> void
findUsedArgumentTypes(com.mojang.brigadier.tree.CommandNode<T> p_243512_0_, java.util.Set<com.mojang.brigadier.arguments.ArgumentType<?>> p_243512_1_, java.util.Set<com.mojang.brigadier.tree.CommandNode<T>> p_243512_2_)
private static ArgumentTypes.Entry<?>
get(com.mojang.brigadier.arguments.ArgumentType<?> p_201040_0_)
private static ArgumentTypes.Entry<?>
get(ResourceLocation p_197482_0_)
static ResourceLocation
getId(com.mojang.brigadier.arguments.ArgumentType<?> type)
static boolean
isTypeRegistered(com.mojang.brigadier.arguments.ArgumentType<?> p_243510_0_)
static <T extends com.mojang.brigadier.arguments.ArgumentType<?>>
voidregister(java.lang.String p_218136_0_, java.lang.Class<T> p_218136_1_, IArgumentSerializer<T> p_218136_2_)
static <T extends com.mojang.brigadier.arguments.ArgumentType<?>>
voidserialize(PacketBuffer p_197484_0_, T p_197484_1_)
static <S> com.google.gson.JsonObject
serializeNodeToJson(com.mojang.brigadier.CommandDispatcher<S> p_200388_0_, com.mojang.brigadier.tree.CommandNode<S> p_200388_1_)
private static <T extends com.mojang.brigadier.arguments.ArgumentType<?>>
voidserializeToJson(com.google.gson.JsonObject p_201042_0_, T p_201042_1_)
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
BY_CLASS
private static final java.util.Map<java.lang.Class<?>,ArgumentTypes.Entry<?>> BY_CLASS
-
BY_NAME
private static final java.util.Map<ResourceLocation,ArgumentTypes.Entry<?>> BY_NAME
-
-
Method Detail
-
register
public static <T extends com.mojang.brigadier.arguments.ArgumentType<?>> void register(java.lang.String p_218136_0_, java.lang.Class<T> p_218136_1_, IArgumentSerializer<T> p_218136_2_)
-
bootStrap
public static void bootStrap()
-
get
@Nullable private static ArgumentTypes.Entry<?> get(ResourceLocation p_197482_0_)
-
get
@Nullable private static ArgumentTypes.Entry<?> get(com.mojang.brigadier.arguments.ArgumentType<?> p_201040_0_)
-
serialize
public static <T extends com.mojang.brigadier.arguments.ArgumentType<?>> void serialize(PacketBuffer p_197484_0_, T p_197484_1_)
-
deserialize
@Nullable public static com.mojang.brigadier.arguments.ArgumentType<?> deserialize(PacketBuffer p_197486_0_)
-
serializeToJson
private static <T extends com.mojang.brigadier.arguments.ArgumentType<?>> void serializeToJson(com.google.gson.JsonObject p_201042_0_, T p_201042_1_)
-
serializeNodeToJson
public static <S> com.google.gson.JsonObject serializeNodeToJson(com.mojang.brigadier.CommandDispatcher<S> p_200388_0_, com.mojang.brigadier.tree.CommandNode<S> p_200388_1_)
-
isTypeRegistered
public static boolean isTypeRegistered(com.mojang.brigadier.arguments.ArgumentType<?> p_243510_0_)
-
findUsedArgumentTypes
public static <T> java.util.Set<com.mojang.brigadier.arguments.ArgumentType<?>> findUsedArgumentTypes(com.mojang.brigadier.tree.CommandNode<T> p_243511_0_)
-
findUsedArgumentTypes
private static <T> void findUsedArgumentTypes(com.mojang.brigadier.tree.CommandNode<T> p_243512_0_, java.util.Set<com.mojang.brigadier.arguments.ArgumentType<?>> p_243512_1_, java.util.Set<com.mojang.brigadier.tree.CommandNode<T>> p_243512_2_)
-
getId
@Nullable public static ResourceLocation getId(com.mojang.brigadier.arguments.ArgumentType<?> type)
-
-