Class ConstantArgumentSerializer<T extends com.mojang.brigadier.arguments.ArgumentType<?>>
java.lang.Object
net.minecraft.command.argument.serialize.ConstantArgumentSerializer<T>
- All Implemented Interfaces:
ArgumentSerializer<T>
public class ConstantArgumentSerializer<T extends com.mojang.brigadier.arguments.ArgumentType<?>> extends Object implements ArgumentSerializer<T>
- Mappings:
Namespace Name official fl
intermediary net/minecraft/class_2319
named net/minecraft/command/argument/serialize/ConstantArgumentSerializer
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ConstantArgumentSerializer(Supplier<T> supplier)
-
Method Summary
Modifier and Type Method Description T
fromPacket(PacketByteBuf packetByteBuf)
void
toJson(T t, JsonObject jsonObject)
void
toPacket(T t, PacketByteBuf packetByteBuf)
-
Field Details
-
supplier
- Mappings:
Namespace Name Mixin selector official a
Lfl;a:Ljava/util/function/Supplier;
intermediary field_10928
Lnet/minecraft/class_2319;field_10928:Ljava/util/function/Supplier;
named supplier
Lnet/minecraft/command/argument/serialize/ConstantArgumentSerializer;supplier:Ljava/util/function/Supplier;
-
-
Constructor Details
-
ConstantArgumentSerializer
-
-
Method Details
-
toPacket
- Specified by:
toPacket
in interfaceArgumentSerializer<T extends com.mojang.brigadier.arguments.ArgumentType<?>>
- Mappings:
Namespace Name Mixin selector official a
Lfj;a(Lcom/mojang/brigadier/arguments/ArgumentType;Lnw;)V
intermediary method_10007
Lnet/minecraft/class_2314;method_10007(Lcom/mojang/brigadier/arguments/ArgumentType;Lnet/minecraft/class_2540;)V
named toPacket
Lnet/minecraft/command/argument/serialize/ArgumentSerializer;toPacket(Lcom/mojang/brigadier/arguments/ArgumentType;Lnet/minecraft/network/PacketByteBuf;)V
-
fromPacket
- Specified by:
fromPacket
in interfaceArgumentSerializer<T extends com.mojang.brigadier.arguments.ArgumentType<?>>
- Mappings:
Namespace Name Mixin selector official b
Lfj;b(Lnw;)Lcom/mojang/brigadier/arguments/ArgumentType;
intermediary method_10005
Lnet/minecraft/class_2314;method_10005(Lnet/minecraft/class_2540;)Lcom/mojang/brigadier/arguments/ArgumentType;
named fromPacket
Lnet/minecraft/command/argument/serialize/ArgumentSerializer;fromPacket(Lnet/minecraft/network/PacketByteBuf;)Lcom/mojang/brigadier/arguments/ArgumentType;
-
toJson
- Specified by:
toJson
in interfaceArgumentSerializer<T extends com.mojang.brigadier.arguments.ArgumentType<?>>
- Mappings:
Namespace Name Mixin selector official a
Lfj;a(Lcom/mojang/brigadier/arguments/ArgumentType;Lcom/google/gson/JsonObject;)V
intermediary method_10006
Lnet/minecraft/class_2314;method_10006(Lcom/mojang/brigadier/arguments/ArgumentType;Lcom/google/gson/JsonObject;)V
named toJson
Lnet/minecraft/command/argument/serialize/ArgumentSerializer;toJson(Lcom/mojang/brigadier/arguments/ArgumentType;Lcom/google/gson/JsonObject;)V
-