Package net.minecraft.registry.tag
Class TagPacketSerializer.Serialized
java.lang.Object
net.minecraft.registry.tag.TagPacketSerializer.Serialized
- Enclosing class:
TagPacketSerializer
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$Serializedintermediary net/minecraft/class_6864$class_5748official awx$a
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromBuf(PacketByteBuf buf) <T> voidintsize()voidwriteBuf(PacketByteBuf buf)
-
Field Details
-
contents
- Mappings:
Namespace Name Mixin selector named contentsLnet/minecraft/registry/tag/TagPacketSerializer$Serialized;contents:Ljava/util/Map;intermediary field_28304Lnet/minecraft/class_6864$class_5748;field_28304:Ljava/util/Map;official aLawx$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;)Vintermediary <init>Lnet/minecraft/class_6864$class_5748;<init>(Ljava/util/Map;)Vofficial <init>Lawx$a;<init>(Ljava/util/Map;)V
-
-
Method Details
-
writeBuf
- Mappings:
Namespace Name Mixin selector named writeBufLnet/minecraft/registry/tag/TagPacketSerializer$Serialized;writeBuf(Lnet/minecraft/network/PacketByteBuf;)Vintermediary method_33159Lnet/minecraft/class_6864$class_5748;method_33159(Lnet/minecraft/class_2540;)Vofficial aLawx$a;a(Lvw;)V
-
fromBuf
- Mappings:
Namespace Name Mixin selector named fromBufLnet/minecraft/registry/tag/TagPacketSerializer$Serialized;fromBuf(Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/registry/tag/TagPacketSerializer$Serialized;intermediary method_33160Lnet/minecraft/class_6864$class_5748;method_33160(Lnet/minecraft/class_2540;)Lnet/minecraft/class_6864$class_5748;official bLawx$a;b(Lvw;)Lawx$a;
-
size
public int size()- Mappings:
Namespace Name Mixin selector named sizeLnet/minecraft/registry/tag/TagPacketSerializer$Serialized;size()Iintermediary method_56531Lnet/minecraft/class_6864$class_5748;method_56531()Iofficial aLawx$a;a()I
-
loadTo
- Mappings:
Namespace Name Mixin selector named loadToLnet/minecraft/registry/tag/TagPacketSerializer$Serialized;loadTo(Lnet/minecraft/registry/Registry;)Vintermediary method_56532Lnet/minecraft/class_6864$class_5748;method_56532(Lnet/minecraft/class_2378;)Vofficial aLawx$a;a(Ljz;)V
-