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 zbintermediary net/minecraft/class_8480named net/minecraft/class_8480official aintermediary comp_1463named transactionIdofficial bintermediary comp_1464named rejectReason
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for therejectReasonrecord component.private final intThe field for thetransactionIdrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionclass_8480(int int2, Optional<Text> optional) class_8480(PacketByteBuf packetByteBuf) -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(ClientPlayPacketListener clientPlayPacketListener) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static class_8480method_51141(int int2) static class_8480method_51142(int int2, Text text) Returns the value of therejectReasonrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetransactionIdrecord component.voidwrite(PacketByteBuf buf) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.network.packet.Packet
isWritingErrorSkippable
-
Field Details
-
transactionId
private final int transactionIdThe field for thetransactionIdrecord component. -
rejectReason
The field for therejectReasonrecord component.
-
-
Constructor Details
-
class_8480
-
class_8480
-
-
Method Details
-
method_51141
- Mappings:
Namespace Name Mixin selector official aLzb;a(I)Lzb;intermediary method_51141Lnet/minecraft/class_8480;method_51141(I)Lnet/minecraft/class_8480;named method_51141Lnet/minecraft/class_8480;method_51141(I)Lnet/minecraft/class_8480;
-
method_51142
- Mappings:
Namespace Name Mixin selector official aLzb;a(ILsw;)Lzb;intermediary method_51142Lnet/minecraft/class_8480;method_51142(ILnet/minecraft/class_2561;)Lnet/minecraft/class_8480;named method_51142Lnet/minecraft/class_8480;method_51142(ILnet/minecraft/text/Text;)Lnet/minecraft/class_8480;
-
write
- Specified by:
writein interfacePacket<ClientPlayPacketListener>- Mappings:
Namespace Name Mixin selector official aLuo;a(Lsf;)Vintermediary method_11052Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)Vnamed writeLnet/minecraft/network/packet/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
-
apply
- Specified by:
applyin interfacePacket<ClientPlayPacketListener>- Mappings:
Namespace Name Mixin selector official aLzb;a(Lur;)Vintermediary method_51143Lnet/minecraft/class_8480;method_51143(Lnet/minecraft/class_2602;)Vnamed applyLnet/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 thetransactionIdrecord component.- Returns:
- the value of the
transactionIdrecord component
-
rejectReason
Returns the value of therejectReasonrecord component.- Returns:
- the value of the
rejectReasonrecord component
-