Record Class AddSubGridS2CPacket

java.lang.Object
java.lang.Record
net.minecraft.network.packet.s2c.play.AddSubGridS2CPacket
Record Components:
id -
uuid -
x -
y -
z -
blocks -
biome -
All Implemented Interfaces:
Packet<ClientPlayPacketListener>

public record AddSubGridS2CPacket(int id, UUID uuid, double x, double y, double z, Grid blocks, RegistryEntry<Biome> biome) extends Record implements Packet<ClientPlayPacketListener>
Mappings:
Namespace Name
official abz
intermediary net/minecraft/class_9487
named net/minecraft/network/packet/s2c/play/AddSubGridS2CPacket
official b
intermediary comp_2556
named id
official c
intermediary comp_2557
named uuid
official d
intermediary comp_2558
named x
official e
intermediary comp_2559
named y
official f
intermediary comp_2560
named z
official g
intermediary comp_2561
named blocks
official h
intermediary comp_2562
named biome
  • Field Details

    • id

      private final int id
      The field for the id record component.
    • uuid

      private final UUID uuid
      The field for the uuid record component.
    • x

      private final double x
      The field for the x record component.
    • y

      private final double y
      The field for the y record component.
    • z

      private final double z
      The field for the z record component.
    • blocks

      private final Grid blocks
      The field for the blocks record component.
    • biome

      private final RegistryEntry<Biome> biome
      The field for the biome record component.
    • CODEC

      public static final PacketCodec<RegistryByteBuf,AddSubGridS2CPacket> CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Labz;a:Lzc;
      intermediary field_50261 Lnet/minecraft/class_9487;field_50261:Lnet/minecraft/class_9139;
      named CODEC Lnet/minecraft/network/packet/s2c/play/AddSubGridS2CPacket;CODEC:Lnet/minecraft/network/codec/PacketCodec;
  • Constructor Details

    • AddSubGridS2CPacket

      public AddSubGridS2CPacket(GridCarrierEntity gridCarrierEntity)
    • AddSubGridS2CPacket

      public AddSubGridS2CPacket(int int2, UUID uUID, double double2, double double3, double double4, Grid grid, RegistryEntry<Biome> registryEntry)
  • Method Details

    • getPacketId

      public PacketType<AddSubGridS2CPacket> getPacketId()
      Specified by:
      getPacketId in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lzl;a()Lzn;
      intermediary method_55846 Lnet/minecraft/class_2596;method_55846()Lnet/minecraft/class_9145;
      named getPacketId Lnet/minecraft/network/packet/Packet;getPacketId()Lnet/minecraft/network/packet/PacketType;
    • apply

      public void apply(ClientPlayPacketListener clientPlayPacketListener)
      Specified by:
      apply in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Labz;a(Labw;)V
      intermediary method_58778 Lnet/minecraft/class_9487;method_58778(Lnet/minecraft/class_2602;)V
      named apply Lnet/minecraft/network/packet/s2c/play/AddSubGridS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • id

      public int id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • uuid

      public UUID uuid()
      Returns the value of the uuid record component.
      Returns:
      the value of the uuid record component
    • x

      public double x()
      Returns the value of the x record component.
      Returns:
      the value of the x record component
    • y

      public double y()
      Returns the value of the y record component.
      Returns:
      the value of the y record component
    • z

      public double z()
      Returns the value of the z record component.
      Returns:
      the value of the z record component
    • blocks

      public Grid blocks()
      Returns the value of the blocks record component.
      Returns:
      the value of the blocks record component
    • biome

      public RegistryEntry<Biome> biome()
      Returns the value of the biome record component.
      Returns:
      the value of the biome record component