Class TagGroup.Serialized

java.lang.Object
net.minecraft.tag.TagGroup.Serialized
Enclosing interface:
TagGroup<T>

public static class TagGroup.Serialized extends Object
A serialization-friendly POJO representation of a tag group. This allows easy transport of tag groups over Minecraft network protocol.

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

Mappings:
Namespace Name
official agb$a
intermediary net/minecraft/class_5414$class_5748
named net/minecraft/tag/TagGroup$Serialized
  • Field Details

    • contents

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

    • Serialized

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

    • writeBuf

      public void writeBuf(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official a Lagb$a;a(Log;)V
      intermediary method_33159 Lnet/minecraft/class_5414$class_5748;method_33159(Lnet/minecraft/class_2540;)V
      named writeBuf Lnet/minecraft/tag/TagGroup$Serialized;writeBuf(Lnet/minecraft/network/PacketByteBuf;)V
    • fromBuf

      public static TagGroup.Serialized fromBuf(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official b Lagb$a;b(Log;)Lagb$a;
      intermediary method_33160 Lnet/minecraft/class_5414$class_5748;method_33160(Lnet/minecraft/class_2540;)Lnet/minecraft/class_5414$class_5748;
      named fromBuf Lnet/minecraft/tag/TagGroup$Serialized;fromBuf(Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/tag/TagGroup$Serialized;