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 Details

    • supplier

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

      public ConstantArgumentSerializer(Supplier<T> supplier)
      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

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

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

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