Record Class AcceptCodeOfConductS2CPacket

java.lang.Object
java.lang.Record
net.minecraft.network.packet.c2s.config.AcceptCodeOfConductS2CPacket
All Implemented Interfaces:
Packet<ServerConfigurationPacketListener>

public record AcceptCodeOfConductS2CPacket() extends Record implements Packet<ServerConfigurationPacketListener>
Mappings:
Namespace Name
named net/minecraft/network/packet/c2s/config/AcceptCodeOfConductS2CPacket
intermediary net/minecraft/class_11752
official acy
  • Field Details

    • INSTANCE

      public static final AcceptCodeOfConductS2CPacket INSTANCE
      Mappings:
      Namespace Name Mixin selector
      named INSTANCE Lnet/minecraft/network/packet/c2s/config/AcceptCodeOfConductS2CPacket;INSTANCE:Lnet/minecraft/network/packet/c2s/config/AcceptCodeOfConductS2CPacket;
      intermediary field_62060 Lnet/minecraft/class_11752;field_62060:Lnet/minecraft/class_11752;
      official a Lacy;a:Lacy;
    • CODEC

      public static final PacketCodec<ByteBuf,AcceptCodeOfConductS2CPacket> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/network/packet/c2s/config/AcceptCodeOfConductS2CPacket;CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_62061 Lnet/minecraft/class_11752;field_62061:Lnet/minecraft/class_9139;
      official b Lacy;b:Laac;
  • Constructor Details

    • AcceptCodeOfConductS2CPacket

      public AcceptCodeOfConductS2CPacket()
      Creates an instance of a AcceptCodeOfConductS2CPacket record class.
  • Method Details

    • getPacketType

      public PacketType<AcceptCodeOfConductS2CPacket> getPacketType()
      Specified by:
      getPacketType in interface Packet<ServerConfigurationPacketListener>
      Mappings:
      Namespace Name Mixin selector
      named getPacketType Lnet/minecraft/network/packet/Packet;getPacketType()Lnet/minecraft/network/packet/PacketType;
      intermediary method_65080 Lnet/minecraft/class_2596;method_65080()Lnet/minecraft/class_9145;
      official a Laam;a()Laao;
    • apply

      public void apply(ServerConfigurationPacketListener serverConfigurationPacketListener)
      Specified by:
      apply in interface Packet<ServerConfigurationPacketListener>
      Mappings:
      Namespace Name Mixin selector
      named apply Lnet/minecraft/network/packet/c2s/config/AcceptCodeOfConductS2CPacket;apply(Lnet/minecraft/network/listener/ServerConfigurationPacketListener;)V
      intermediary method_73260 Lnet/minecraft/class_11752;method_73260(Lnet/minecraft/class_8735;)V
      official a Lacy;a(Lacx;)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.
      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.