Class TagPacketSerializer.Serialized

java.lang.Object
net.minecraft.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
official alc$a
intermediary net/minecraft/class_6864$class_5748
named net/minecraft/tag/TagPacketSerializer$Serialized
  • Field Details

    • contents

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

    • Serialized

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

    • writeBuf

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

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

      public boolean isEmpty()
      Mappings:
      Namespace Name Mixin selector
      official a Lalc$a;a()Z
      intermediary method_40108 Lnet/minecraft/class_6864$class_5748;method_40108()Z
      named isEmpty Lnet/minecraft/tag/TagPacketSerializer$Serialized;isEmpty()Z