Record Class ChunkBiomeDataS2CPacket.Serialized

java.lang.Object
java.lang.Record
net.minecraft.network.packet.s2c.play.ChunkBiomeDataS2CPacket.Serialized
Record Components:
pos -
buffer -
Enclosing class:
ChunkBiomeDataS2CPacket

public static record ChunkBiomeDataS2CPacket.Serialized(ChunkPos pos, byte[] buffer) extends Record
Mappings:
Namespace Name
named net/minecraft/network/packet/s2c/play/ChunkBiomeDataS2CPacket$Serialized
intermediary net/minecraft/class_8212$class_8213
official acy$a
named pos
intermediary comp_1314
official a
named buffer
intermediary comp_1315
official b
  • Field Details

    • pos

      private final ChunkPos pos
      The field for the pos record component.
    • buffer

      private final byte[] buffer
      The field for the buffer record component.
  • Constructor Details

    • Serialized

      public Serialized(WorldChunk chunk)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/network/packet/s2c/play/ChunkBiomeDataS2CPacket$Serialized;<init>(Lnet/minecraft/world/chunk/WorldChunk;)V
      intermediary <init> Lnet/minecraft/class_8212$class_8213;<init>(Lnet/minecraft/class_2818;)V
      official <init> Lacy$a;<init>(Lduk;)V
    • Serialized

      public Serialized(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/network/packet/s2c/play/ChunkBiomeDataS2CPacket$Serialized;<init>(Lnet/minecraft/network/PacketByteBuf;)V
      intermediary <init> Lnet/minecraft/class_8212$class_8213;<init>(Lnet/minecraft/class_2540;)V
      official <init> Lacy$a;<init>(Lwm;)V
    • Serialized

      public Serialized(ChunkPos chunkPos, byte[] byte2)
  • Method Details

    • getTotalPacketSize

      private static int getTotalPacketSize(WorldChunk chunk)
      Mappings:
      Namespace Name Mixin selector
      named getTotalPacketSize Lnet/minecraft/network/packet/s2c/play/ChunkBiomeDataS2CPacket$Serialized;getTotalPacketSize(Lnet/minecraft/world/chunk/WorldChunk;)I
      intermediary method_49689 Lnet/minecraft/class_8212$class_8213;method_49689(Lnet/minecraft/class_2818;)I
      official a Lacy$a;a(Lduk;)I
    • toReadingBuf

      public PacketByteBuf toReadingBuf()
      Mappings:
      Namespace Name Mixin selector
      named toReadingBuf Lnet/minecraft/network/packet/s2c/play/ChunkBiomeDataS2CPacket$Serialized;toReadingBuf()Lnet/minecraft/network/PacketByteBuf;
      intermediary method_49688 Lnet/minecraft/class_8212$class_8213;method_49688()Lnet/minecraft/class_2540;
      official a Lacy$a;a()Lwm;
    • toWritingBuf

      private ByteBuf toWritingBuf()
      Mappings:
      Namespace Name Mixin selector
      named toWritingBuf Lnet/minecraft/network/packet/s2c/play/ChunkBiomeDataS2CPacket$Serialized;toWritingBuf()Lio/netty/buffer/ByteBuf;
      intermediary method_49692 Lnet/minecraft/class_8212$class_8213;method_49692()Lio/netty/buffer/ByteBuf;
      official d Lacy$a;d()Lio/netty/buffer/ByteBuf;
    • write

      public static void write(PacketByteBuf buf, WorldChunk chunk)
      Mappings:
      Namespace Name Mixin selector
      named write Lnet/minecraft/network/packet/s2c/play/ChunkBiomeDataS2CPacket$Serialized;write(Lnet/minecraft/network/PacketByteBuf;Lnet/minecraft/world/chunk/WorldChunk;)V
      intermediary method_49691 Lnet/minecraft/class_8212$class_8213;method_49691(Lnet/minecraft/class_2540;Lnet/minecraft/class_2818;)V
      official a Lacy$a;a(Lwm;Lduk;)V
    • write

      public void write(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named write Lnet/minecraft/network/packet/s2c/play/ChunkBiomeDataS2CPacket$Serialized;write(Lnet/minecraft/network/PacketByteBuf;)V
      intermediary method_49690 Lnet/minecraft/class_8212$class_8213;method_49690(Lnet/minecraft/class_2540;)V
      official a Lacy$a;a(Lwm;)V
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • pos

      public ChunkPos pos()
      Returns the value of the pos record component.
      Returns:
      the value of the pos record component
    • buffer

      public byte[] buffer()
      Returns the value of the buffer record component.
      Returns:
      the value of the buffer record component