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 Details

    • supplier

      private final Supplier<T extends com.mojang.brigadier.arguments.ArgumentType<?>> 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

      public ConstantArgumentSerializer​(Supplier<T> supplier)
  • Method Details

    • toPacket

      public void toPacket​(T t, PacketByteBuf packetByteBuf)
      Specified by:
      toPacket in interface ArgumentSerializer<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

      public T fromPacket​(PacketByteBuf packetByteBuf)
      Specified by:
      fromPacket in interface ArgumentSerializer<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

      public void toJson​(T t, JsonObject jsonObject)
      Specified by:
      toJson in interface ArgumentSerializer<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