public class ArgumentTypes
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
ArgumentTypes.Entry<T extends com.mojang.brigadier.arguments.ArgumentType<?>> |
Modifier and Type | Field and Description |
---|---|
private static java.util.Map<java.lang.Class<?>,ArgumentTypes.Entry<?>> |
CLASS_TYPE_MAP |
private static java.util.Map<ResourceLocation,ArgumentTypes.Entry<?>> |
ID_TYPE_MAP |
private static org.apache.logging.log4j.Logger |
LOGGER |
Constructor and Description |
---|
ArgumentTypes() |
Modifier and Type | Method and Description |
---|---|
static com.mojang.brigadier.arguments.ArgumentType<?> |
deserialize(PacketBuffer buffer) |
private static ArgumentTypes.Entry<?> |
get(com.mojang.brigadier.arguments.ArgumentType<?> type) |
private static ArgumentTypes.Entry<?> |
get(ResourceLocation id) |
static <T extends com.mojang.brigadier.arguments.ArgumentType<?>> |
register(java.lang.String p_218136_0_,
java.lang.Class<T> p_218136_1_,
IArgumentSerializer<T> p_218136_2_) |
static void |
registerArgumentTypes() |
static <S> com.google.gson.JsonObject |
serialize(com.mojang.brigadier.CommandDispatcher<S> dispatcher,
com.mojang.brigadier.tree.CommandNode<S> node) |
private static <T extends com.mojang.brigadier.arguments.ArgumentType<?>> |
serialize(com.google.gson.JsonObject json,
T type) |
static <T extends com.mojang.brigadier.arguments.ArgumentType<?>> |
serialize(PacketBuffer buffer,
T type) |
private static final org.apache.logging.log4j.Logger LOGGER
private static final java.util.Map<java.lang.Class<?>,ArgumentTypes.Entry<?>> CLASS_TYPE_MAP
private static final java.util.Map<ResourceLocation,ArgumentTypes.Entry<?>> ID_TYPE_MAP
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_)
public static void registerArgumentTypes()
@Nullable private static ArgumentTypes.Entry<?> get(ResourceLocation id)
@Nullable private static ArgumentTypes.Entry<?> get(com.mojang.brigadier.arguments.ArgumentType<?> type)
public static <T extends com.mojang.brigadier.arguments.ArgumentType<?>> void serialize(PacketBuffer buffer, T type)
@Nullable public static com.mojang.brigadier.arguments.ArgumentType<?> deserialize(PacketBuffer buffer)
private static <T extends com.mojang.brigadier.arguments.ArgumentType<?>> void serialize(com.google.gson.JsonObject json, T type)
public static <S> com.google.gson.JsonObject serialize(com.mojang.brigadier.CommandDispatcher<S> dispatcher, com.mojang.brigadier.tree.CommandNode<S> node)