Package net.minecraft
Record Class class_11980.class_11981<T extends PacketListener>
java.lang.Object
java.lang.Record
net.minecraft.class_11980.class_11981<T>
- Record Components:
listener-packet-
- Enclosing class:
class_11980
private static record class_11980.class_11981<T extends PacketListener>(T extends PacketListener listener, Packet<T extends PacketListener> packet)
extends Record
- Mappings:
Namespace Name named net/minecraft/class_11980$class_11981intermediary net/minecraft/class_11980$class_11981official xb$anamed listenerintermediary comp_4821official anamed packetintermediary comp_4822official b
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.listener()Returns the value of thelistenerrecord component.voidpacket()Returns the value of thepacketrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
class_11981
-
-
Method Details
-
method_74450
public void method_74450()- Mappings:
Namespace Name Mixin selector named method_74450Lnet/minecraft/class_11980$class_11981;method_74450()Vintermediary method_74450Lnet/minecraft/class_11980$class_11981;method_74450()Vofficial aLxb$a;a()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. All components in this record class are compared withObjects::equals(Object,Object). -
listener
Returns the value of thelistenerrecord component.- Returns:
- the value of the
listenerrecord component
-
packet
Returns the value of thepacketrecord component.- Returns:
- the value of the
packetrecord component
-