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 fv
intermediary net/minecraft/class_2319
named net/minecraft/command/argument/serialize/ConstantArgumentSerializer
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfromPacket
(PacketByteBuf buf) void
toJson
(T type, JsonObject json) void
toPacket
(T type, PacketByteBuf buf)
-
Field Details
-
supplier
- Mappings:
Namespace Name Mixin selector official a
Lfv;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
- Mappings:
Namespace Name Mixin selector official <init>
Lfv;<init>(Ljava/util/function/Supplier;)V
intermediary <init>
Lnet/minecraft/class_2319;<init>(Ljava/util/function/Supplier;)V
named <init>
Lnet/minecraft/command/argument/serialize/ConstantArgumentSerializer;<init>(Ljava/util/function/Supplier;)V
-
-
Method Details
-
toPacket
- Specified by:
toPacket
in interfaceArgumentSerializer<T extends com.mojang.brigadier.arguments.ArgumentType<?>>
- Mappings:
Namespace Name Mixin selector official a
Lft;a(Lcom/mojang/brigadier/arguments/ArgumentType;Lph;)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
Lft;b(Lph;)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
Lft;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
-