Class ConstantArgumentSerializer<A extends com.mojang.brigadier.arguments.ArgumentType<?>>
java.lang.Object
net.minecraft.command.argument.serialize.ConstantArgumentSerializer<A>
- All Implemented Interfaces:
ArgumentSerializer<A,
ConstantArgumentSerializer<A>.Properties>
public class ConstantArgumentSerializer<A extends com.mojang.brigadier.arguments.ArgumentType<?>>
extends Object
implements ArgumentSerializer<A,ConstantArgumentSerializer<A>.Properties>
- Mappings:
Namespace Name official gi
intermediary net/minecraft/class_2319
named net/minecraft/command/argument/serialize/ConstantArgumentSerializer
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.command.argument.serialize.ArgumentSerializer
ArgumentSerializer.ArgumentTypeProperties<A extends com.mojang.brigadier.arguments.ArgumentType<?>>
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprivate
ConstantArgumentSerializer
(Function<CommandRegistryAccess, A> typeSupplier) -
Method Summary
Modifier and TypeMethodDescriptionfromPacket
(PacketByteBuf packetByteBuf) static <T extends com.mojang.brigadier.arguments.ArgumentType<?>>
ConstantArgumentSerializer<T>of
(Function<CommandRegistryAccess, T> typeSupplier) static <T extends com.mojang.brigadier.arguments.ArgumentType<?>>
ConstantArgumentSerializer<T>void
writeJson
(ConstantArgumentSerializer<A>.Properties constantArgumentSerializer, JsonObject jsonObject) void
writePacket
(ConstantArgumentSerializer<A>.Properties constantArgumentSerializer, PacketByteBuf packetByteBuf)
-
Field Details
-
properties
private final ConstantArgumentSerializer<A extends com.mojang.brigadier.arguments.ArgumentType<?>>.Properties properties- Mappings:
Namespace Name Mixin selector official a
Lgi;a:Lgi$a;
intermediary field_37978
Lnet/minecraft/class_2319;field_37978:Lnet/minecraft/class_2319$class_7219;
named properties
Lnet/minecraft/command/argument/serialize/ConstantArgumentSerializer;properties:Lnet/minecraft/command/argument/serialize/ConstantArgumentSerializer$Properties;
-
-
Constructor Details
-
ConstantArgumentSerializer
- Mappings:
Namespace Name Mixin selector official <init>
Lgi;<init>(Ljava/util/function/Function;)V
intermediary <init>
Lnet/minecraft/class_2319;<init>(Ljava/util/function/Function;)V
named <init>
Lnet/minecraft/command/argument/serialize/ConstantArgumentSerializer;<init>(Ljava/util/function/Function;)V
-
-
Method Details
-
of
public static <T extends com.mojang.brigadier.arguments.ArgumentType<?>> ConstantArgumentSerializer<T> of(Supplier<T> typeSupplier) - Mappings:
Namespace Name Mixin selector official a
Lgi;a(Ljava/util/function/Supplier;)Lgi;
intermediary method_41999
Lnet/minecraft/class_2319;method_41999(Ljava/util/function/Supplier;)Lnet/minecraft/class_2319;
named of
Lnet/minecraft/command/argument/serialize/ConstantArgumentSerializer;of(Ljava/util/function/Supplier;)Lnet/minecraft/command/argument/serialize/ConstantArgumentSerializer;
-
of
public static <T extends com.mojang.brigadier.arguments.ArgumentType<?>> ConstantArgumentSerializer<T> of(Function<CommandRegistryAccess, T> typeSupplier) - Mappings:
Namespace Name Mixin selector official a
Lgi;a(Ljava/util/function/Function;)Lgi;
intermediary method_41998
Lnet/minecraft/class_2319;method_41998(Ljava/util/function/Function;)Lnet/minecraft/class_2319;
named of
Lnet/minecraft/command/argument/serialize/ConstantArgumentSerializer;of(Ljava/util/function/Function;)Lnet/minecraft/command/argument/serialize/ConstantArgumentSerializer;
-
writePacket
public void writePacket(ConstantArgumentSerializer<A>.Properties constantArgumentSerializer, PacketByteBuf packetByteBuf) - Specified by:
writePacket
in interfaceArgumentSerializer<A extends com.mojang.brigadier.arguments.ArgumentType<?>,
ConstantArgumentSerializer<A extends com.mojang.brigadier.arguments.ArgumentType<?>>.Properties> - Mappings:
Namespace Name Mixin selector official a
Lgi;a(Lgi$a;Lss;)V
intermediary method_41997
Lnet/minecraft/class_2319;method_41997(Lnet/minecraft/class_2319$class_7219;Lnet/minecraft/class_2540;)V
named writePacket
Lnet/minecraft/command/argument/serialize/ConstantArgumentSerializer;writePacket(Lnet/minecraft/command/argument/serialize/ConstantArgumentSerializer$Properties;Lnet/minecraft/network/PacketByteBuf;)V
-
writeJson
public void writeJson(ConstantArgumentSerializer<A>.Properties constantArgumentSerializer, JsonObject jsonObject) - Specified by:
writeJson
in interfaceArgumentSerializer<A extends com.mojang.brigadier.arguments.ArgumentType<?>,
ConstantArgumentSerializer<A extends com.mojang.brigadier.arguments.ArgumentType<?>>.Properties> - Mappings:
Namespace Name Mixin selector official a
Lgi;a(Lgi$a;Lcom/google/gson/JsonObject;)V
intermediary method_41996
Lnet/minecraft/class_2319;method_41996(Lnet/minecraft/class_2319$class_7219;Lcom/google/gson/JsonObject;)V
named writeJson
Lnet/minecraft/command/argument/serialize/ConstantArgumentSerializer;writeJson(Lnet/minecraft/command/argument/serialize/ConstantArgumentSerializer$Properties;Lcom/google/gson/JsonObject;)V
-
fromPacket
- Specified by:
fromPacket
in interfaceArgumentSerializer<A extends com.mojang.brigadier.arguments.ArgumentType<?>,
ConstantArgumentSerializer<A extends com.mojang.brigadier.arguments.ArgumentType<?>>.Properties> - Mappings:
Namespace Name Mixin selector official a
Lgi;a(Lss;)Lgi$a;
intermediary method_42001
Lnet/minecraft/class_2319;method_42001(Lnet/minecraft/class_2540;)Lnet/minecraft/class_2319$class_7219;
named fromPacket
Lnet/minecraft/command/argument/serialize/ConstantArgumentSerializer;fromPacket(Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/command/argument/serialize/ConstantArgumentSerializer$Properties;
-
getArgumentTypeProperties
- Specified by:
getArgumentTypeProperties
in interfaceArgumentSerializer<A extends com.mojang.brigadier.arguments.ArgumentType<?>,
ConstantArgumentSerializer<A extends com.mojang.brigadier.arguments.ArgumentType<?>>.Properties> - Mappings:
Namespace Name Mixin selector official b
Lgi;b(Lcom/mojang/brigadier/arguments/ArgumentType;)Lgi$a;
intermediary method_42002
Lnet/minecraft/class_2319;method_42002(Lcom/mojang/brigadier/arguments/ArgumentType;)Lnet/minecraft/class_2319$class_7219;
named getArgumentTypeProperties
Lnet/minecraft/command/argument/serialize/ConstantArgumentSerializer;getArgumentTypeProperties(Lcom/mojang/brigadier/arguments/ArgumentType;)Lnet/minecraft/command/argument/serialize/ConstantArgumentSerializer$Properties;
-