Class SingletonArgumentInfo<A extends com.mojang.brigadier.arguments.ArgumentType<?>>
java.lang.Object
net.minecraft.commands.synchronization.SingletonArgumentInfo<A>
- All Implemented Interfaces:
ArgumentTypeInfo<A,
SingletonArgumentInfo<A>.Template>
public class SingletonArgumentInfo<A extends com.mojang.brigadier.arguments.ArgumentType<?>>
extends Object
implements ArgumentTypeInfo<A,SingletonArgumentInfo<A>.Template>
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprivate
SingletonArgumentInfo
(Function<CommandBuildContext, A> p_235434_) -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends com.mojang.brigadier.arguments.ArgumentType<?>>
SingletonArgumentInfo<T> contextAware
(Function<CommandBuildContext, T> p_235450_) static <T extends com.mojang.brigadier.arguments.ArgumentType<?>>
SingletonArgumentInfo<T> contextFree
(Supplier<T> p_235452_) deserializeFromNetwork
(FriendlyByteBuf p_235457_) void
serializeToJson
(SingletonArgumentInfo<A>.Template p_235444_, com.google.gson.JsonObject p_235445_) void
serializeToNetwork
(SingletonArgumentInfo<A>.Template p_235447_, FriendlyByteBuf p_235448_)
-
Field Details
-
template
private final SingletonArgumentInfo<A extends com.mojang.brigadier.arguments.ArgumentType<?>>.Template template
-
-
Constructor Details
-
SingletonArgumentInfo
-
-
Method Details
-
contextFree
public static <T extends com.mojang.brigadier.arguments.ArgumentType<?>> SingletonArgumentInfo<T> contextFree(Supplier<T> p_235452_) -
contextAware
public static <T extends com.mojang.brigadier.arguments.ArgumentType<?>> SingletonArgumentInfo<T> contextAware(Function<CommandBuildContext, T> p_235450_) -
serializeToNetwork
public void serializeToNetwork(SingletonArgumentInfo<A>.Template p_235447_, FriendlyByteBuf p_235448_) - Specified by:
serializeToNetwork
in interfaceArgumentTypeInfo<A extends com.mojang.brigadier.arguments.ArgumentType<?>,
SingletonArgumentInfo<A extends com.mojang.brigadier.arguments.ArgumentType<?>>.Template>
-
serializeToJson
public void serializeToJson(SingletonArgumentInfo<A>.Template p_235444_, com.google.gson.JsonObject p_235445_) - Specified by:
serializeToJson
in interfaceArgumentTypeInfo<A extends com.mojang.brigadier.arguments.ArgumentType<?>,
SingletonArgumentInfo<A extends com.mojang.brigadier.arguments.ArgumentType<?>>.Template>
-
deserializeFromNetwork
- Specified by:
deserializeFromNetwork
in interfaceArgumentTypeInfo<A extends com.mojang.brigadier.arguments.ArgumentType<?>,
SingletonArgumentInfo<A extends com.mojang.brigadier.arguments.ArgumentType<?>>.Template>
-
unpack
- Specified by:
unpack
in interfaceArgumentTypeInfo<A extends com.mojang.brigadier.arguments.ArgumentType<?>,
SingletonArgumentInfo<A extends com.mojang.brigadier.arguments.ArgumentType<?>>.Template>
-