Package net.minecraft.network
Record Class PacketApplyBatcher.Entry<T extends PacketListener>
java.lang.Object
java.lang.Record
net.minecraft.network.PacketApplyBatcher.Entry<T>
- Record Components:
listener-packet-
- Enclosing class:
PacketApplyBatcher
private static record PacketApplyBatcher.Entry<T extends PacketListener>(T extends PacketListener listener, Packet<T extends PacketListener> packet)
extends Record
- Mappings:
Namespace Name named net/minecraft/network/PacketApplyBatcher$Entryintermediary 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 TypeMethodDescriptionvoidapply()final 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.packet()Returns the value of thepacketrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
Entry
-
-
Method Details
-
apply
public void apply()- Mappings:
Namespace Name Mixin selector named applyLnet/minecraft/network/PacketApplyBatcher$Entry;apply()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
-