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

    • properties

      private final ConstantArgumentSerializer<A extends com.mojang.brigadier.arguments.ArgumentType<?>>.Properties properties
      Mappings:
      Namespace Name Mixin selector
      named properties Lnet/minecraft/command/argument/serialize/ConstantArgumentSerializer;properties:Lnet/minecraft/command/argument/serialize/ConstantArgumentSerializer$Properties;
      intermediary field_37978 Lnet/minecraft/class_2319;field_37978:Lnet/minecraft/class_2319$class_7219;
      official a Liv;a:Liv$a;
  • Constructor Details

    • ConstantArgumentSerializer

      private ConstantArgumentSerializer(Function<CommandRegistryAccess,A> typeSupplier)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/command/argument/serialize/ConstantArgumentSerializer;<init>(Ljava/util/function/Function;)V
      intermediary <init> Lnet/minecraft/class_2319;<init>(Ljava/util/function/Function;)V
      official <init> Liv;<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
      named of Lnet/minecraft/command/argument/serialize/ConstantArgumentSerializer;of(Ljava/util/function/Supplier;)Lnet/minecraft/command/argument/serialize/ConstantArgumentSerializer;
      intermediary method_41999 Lnet/minecraft/class_2319;method_41999(Ljava/util/function/Supplier;)Lnet/minecraft/class_2319;
      official a Liv;a(Ljava/util/function/Supplier;)Liv;
    • of

      public static <T extends com.mojang.brigadier.arguments.ArgumentType<?>> ConstantArgumentSerializer<T> of(Function<CommandRegistryAccess,T> typeSupplier)
      Mappings:
      Namespace Name Mixin selector
      named of Lnet/minecraft/command/argument/serialize/ConstantArgumentSerializer;of(Ljava/util/function/Function;)Lnet/minecraft/command/argument/serialize/ConstantArgumentSerializer;
      intermediary method_41998 Lnet/minecraft/class_2319;method_41998(Ljava/util/function/Function;)Lnet/minecraft/class_2319;
      official a Liv;a(Ljava/util/function/Function;)Liv;
    • 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
      named writePacket Lnet/minecraft/command/argument/serialize/ConstantArgumentSerializer;writePacket(Lnet/minecraft/command/argument/serialize/ConstantArgumentSerializer$Properties;Lnet/minecraft/network/PacketByteBuf;)V
      intermediary method_41997 Lnet/minecraft/class_2319;method_41997(Lnet/minecraft/class_2319$class_7219;Lnet/minecraft/class_2540;)V
      official a Liv;a(Liv$a;Lws;)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
      named writeJson Lnet/minecraft/command/argument/serialize/ConstantArgumentSerializer;writeJson(Lnet/minecraft/command/argument/serialize/ConstantArgumentSerializer$Properties;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
      official a Liv;a(Liv$a;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
      named fromPacket Lnet/minecraft/command/argument/serialize/ConstantArgumentSerializer;fromPacket(Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/command/argument/serialize/ConstantArgumentSerializer$Properties;
      intermediary method_42001 Lnet/minecraft/class_2319;method_42001(Lnet/minecraft/class_2540;)Lnet/minecraft/class_2319$class_7219;
      official a Liv;a(Lws;)Liv$a;
    • 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
      named getArgumentTypeProperties Lnet/minecraft/command/argument/serialize/ConstantArgumentSerializer;getArgumentTypeProperties(Lcom/mojang/brigadier/arguments/ArgumentType;)Lnet/minecraft/command/argument/serialize/ConstantArgumentSerializer$Properties;
      intermediary method_42002 Lnet/minecraft/class_2319;method_42002(Lcom/mojang/brigadier/arguments/ArgumentType;)Lnet/minecraft/class_2319$class_7219;
      official b Liv;b(Lcom/mojang/brigadier/arguments/ArgumentType;)Liv$a;