Package net.minecraft.tag
Class TagPacketSerializer.Serialized
java.lang.Object
net.minecraft.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 official akk$aintermediary net/minecraft/class_6864$class_5748named net/minecraft/tag/TagPacketSerializer$Serialized
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromBuf(PacketByteBuf buf) booleanisEmpty()voidwriteBuf(PacketByteBuf buf)
-
Field Details
-
contents
- Mappings:
Namespace Name Mixin selector official aLakk$a;a:Ljava/util/Map;intermediary field_28304Lnet/minecraft/class_6864$class_5748;field_28304:Ljava/util/Map;named contentsLnet/minecraft/tag/TagPacketSerializer$Serialized;contents:Ljava/util/Map;
-
-
Constructor Details
-
Serialized
Serialized(Map<Identifier, IntList> contents) - Mappings:
Namespace Name Mixin selector official <init>Lakk$a;<init>(Ljava/util/Map;)Vintermediary <init>Lnet/minecraft/class_6864$class_5748;<init>(Ljava/util/Map;)Vnamed <init>Lnet/minecraft/tag/TagPacketSerializer$Serialized;<init>(Ljava/util/Map;)V
-
-
Method Details
-
writeBuf
- Mappings:
Namespace Name Mixin selector official aLakk$a;a(Lqx;)Vintermediary method_33159Lnet/minecraft/class_6864$class_5748;method_33159(Lnet/minecraft/class_2540;)Vnamed writeBufLnet/minecraft/tag/TagPacketSerializer$Serialized;writeBuf(Lnet/minecraft/network/PacketByteBuf;)V
-
fromBuf
- Mappings:
Namespace Name Mixin selector official bLakk$a;b(Lqx;)Lakk$a;intermediary method_33160Lnet/minecraft/class_6864$class_5748;method_33160(Lnet/minecraft/class_2540;)Lnet/minecraft/class_6864$class_5748;named fromBufLnet/minecraft/tag/TagPacketSerializer$Serialized;fromBuf(Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/tag/TagPacketSerializer$Serialized;
-
isEmpty
public boolean isEmpty()- Mappings:
Namespace Name Mixin selector official aLakk$a;a()Zintermediary method_40108Lnet/minecraft/class_6864$class_5748;method_40108()Znamed isEmptyLnet/minecraft/tag/TagPacketSerializer$Serialized;isEmpty()Z
-