Class TagPacketSerializer.Serialized

java.lang.Object
net.minecraft.registry.tag.TagPacketSerializer.Serialized
Enclosing class:
TagPacketSerializer

public static final class TagPacketSerializer.Serialized extends Object
A serialization-friendly POJO representation of a registry entry list of tags. This allows easy transport of tags over Minecraft network protocol.

This stores tag entries with raw integer IDs and requires a registry for raw ID access to serialize or deserialize tags.

Mappings:
Namespace Name
named net/minecraft/registry/tag/TagPacketSerializer$Serialized
intermediary net/minecraft/class_6864$class_5748
official axi$a
  • Field Details

    • contents

      final Map<Identifier,IntList> contents
      Mappings:
      Namespace Name Mixin selector
      named contents Lnet/minecraft/registry/tag/TagPacketSerializer$Serialized;contents:Ljava/util/Map;
      intermediary field_28304 Lnet/minecraft/class_6864$class_5748;field_28304:Ljava/util/Map;
      official a Laxi$a;a:Ljava/util/Map;
  • Constructor Details

    • Serialized

      Serialized(Map<Identifier,IntList> contents)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/registry/tag/TagPacketSerializer$Serialized;<init>(Ljava/util/Map;)V
      intermediary <init> Lnet/minecraft/class_6864$class_5748;<init>(Ljava/util/Map;)V
      official <init> Laxi$a;<init>(Ljava/util/Map;)V
  • Method Details

    • writeBuf

      public void writeBuf(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named writeBuf Lnet/minecraft/registry/tag/TagPacketSerializer$Serialized;writeBuf(Lnet/minecraft/network/PacketByteBuf;)V
      intermediary method_33159 Lnet/minecraft/class_6864$class_5748;method_33159(Lnet/minecraft/class_2540;)V
      official a Laxi$a;a(Lwm;)V
    • fromBuf

      public static TagPacketSerializer.Serialized fromBuf(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named fromBuf Lnet/minecraft/registry/tag/TagPacketSerializer$Serialized;fromBuf(Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/registry/tag/TagPacketSerializer$Serialized;
      intermediary method_33160 Lnet/minecraft/class_6864$class_5748;method_33160(Lnet/minecraft/class_2540;)Lnet/minecraft/class_6864$class_5748;
      official b Laxi$a;b(Lwm;)Laxi$a;
    • size

      public int size()
      Mappings:
      Namespace Name Mixin selector
      named size Lnet/minecraft/registry/tag/TagPacketSerializer$Serialized;size()I
      intermediary method_56531 Lnet/minecraft/class_6864$class_5748;method_56531()I
      official a Laxi$a;a()I
    • loadTo

      public <T> void loadTo(Registry<T> registry)
      Mappings:
      Namespace Name Mixin selector
      named loadTo Lnet/minecraft/registry/tag/TagPacketSerializer$Serialized;loadTo(Lnet/minecraft/registry/Registry;)V
      intermediary method_56532 Lnet/minecraft/class_6864$class_5748;method_56532(Lnet/minecraft/class_2378;)V
      official a Laxi$a;a(Ljv;)V