Package net.minecraft
Record Class class_8480
java.lang.Object
java.lang.Record
net.minecraft.class_8480
- Record Components:
transactionId
-rejectReason
-
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public record class_8480(int transactionId, Optional<Text> rejectReason)
extends Record
implements Packet<ClientPlayPacketListener>
- Mappings:
Namespace Name official zb
intermediary net/minecraft/class_8480
named net/minecraft/class_8480
official a
intermediary comp_1463
named transactionId
official b
intermediary comp_1464
named rejectReason
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for therejectReason
record component.private final int
The field for thetransactionId
record component. -
Constructor Summary
ConstructorsConstructorDescriptionclass_8480
(int int2, Optional<Text> optional) class_8480
(PacketByteBuf packetByteBuf) -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(ClientPlayPacketListener clientPlayPacketListener) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.static class_8480
method_51141
(int int2) static class_8480
method_51142
(int int2, Text text) Returns the value of therejectReason
record component.final String
toString()
Returns a string representation of this record class.int
Returns the value of thetransactionId
record component.void
write
(PacketByteBuf buf) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.network.packet.Packet
isWritingErrorSkippable
-
Field Details
-
transactionId
private final int transactionIdThe field for thetransactionId
record component. -
rejectReason
The field for therejectReason
record component.
-
-
Constructor Details
-
class_8480
-
class_8480
-
-
Method Details
-
method_51141
- Mappings:
Namespace Name Mixin selector official a
Lzb;a(I)Lzb;
intermediary method_51141
Lnet/minecraft/class_8480;method_51141(I)Lnet/minecraft/class_8480;
named method_51141
Lnet/minecraft/class_8480;method_51141(I)Lnet/minecraft/class_8480;
-
method_51142
- Mappings:
Namespace Name Mixin selector official a
Lzb;a(ILsw;)Lzb;
intermediary method_51142
Lnet/minecraft/class_8480;method_51142(ILnet/minecraft/class_2561;)Lnet/minecraft/class_8480;
named method_51142
Lnet/minecraft/class_8480;method_51142(ILnet/minecraft/text/Text;)Lnet/minecraft/class_8480;
-
write
- Specified by:
write
in interfacePacket<ClientPlayPacketListener>
- Mappings:
Namespace Name Mixin selector official a
Luo;a(Lsf;)V
intermediary method_11052
Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)V
named write
Lnet/minecraft/network/packet/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
-
apply
- Specified by:
apply
in interfacePacket<ClientPlayPacketListener>
- Mappings:
Namespace Name Mixin selector official a
Lzb;a(Lur;)V
intermediary method_51143
Lnet/minecraft/class_8480;method_51143(Lnet/minecraft/class_2602;)V
named apply
Lnet/minecraft/class_8480;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
-
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. -
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. -
equals
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 withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
transactionId
public int transactionId()Returns the value of thetransactionId
record component.- Returns:
- the value of the
transactionId
record component
-
rejectReason
Returns the value of therejectReason
record component.- Returns:
- the value of the
rejectReason
record component
-