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 hm
intermediary net/minecraft/class_2319
named net/minecraft/command/argument/serialize/ConstantArgumentSerializer
  • Field Details

    • properties

      private final ConstantArgumentSerializer<A extends com.mojang.brigadier.arguments.ArgumentType<?>>.Properties properties
      Mappings:
      Namespace Name Mixin selector
      official a Lhm;a:Lhm$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

      private ConstantArgumentSerializer(Function<CommandRegistryAccess,A> typeSupplier)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lhm;<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 Lhm;a(Ljava/util/function/Supplier;)Lhm;
      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 Lhm;a(Ljava/util/function/Function;)Lhm;
      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 interface ArgumentSerializer<A extends com.mojang.brigadier.arguments.ArgumentType<?>,ConstantArgumentSerializer<A extends com.mojang.brigadier.arguments.ArgumentType<?>>.Properties>
      Mappings:
      Namespace Name Mixin selector
      official a Lhm;a(Lhm$a;Lui;)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 interface ArgumentSerializer<A extends com.mojang.brigadier.arguments.ArgumentType<?>,ConstantArgumentSerializer<A extends com.mojang.brigadier.arguments.ArgumentType<?>>.Properties>
      Mappings:
      Namespace Name Mixin selector
      official a Lhm;a(Lhm$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

      public ConstantArgumentSerializer<A>.Properties fromPacket(PacketByteBuf packetByteBuf)
      Specified by:
      fromPacket in interface ArgumentSerializer<A extends com.mojang.brigadier.arguments.ArgumentType<?>,ConstantArgumentSerializer<A extends com.mojang.brigadier.arguments.ArgumentType<?>>.Properties>
      Mappings:
      Namespace Name Mixin selector
      official a Lhm;a(Lui;)Lhm$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

      public ConstantArgumentSerializer<A>.Properties getArgumentTypeProperties(A a)
      Specified by:
      getArgumentTypeProperties in interface ArgumentSerializer<A extends com.mojang.brigadier.arguments.ArgumentType<?>,ConstantArgumentSerializer<A extends com.mojang.brigadier.arguments.ArgumentType<?>>.Properties>
      Mappings:
      Namespace Name Mixin selector
      official b Lhm;b(Lcom/mojang/brigadier/arguments/ArgumentType;)Lhm$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;