Package org.geysermc.geyser.network
Record Class NetworkDefinitionBuilder.HandlerEntry<T extends org.geysermc.geyser.api.network.message.Message<? extends org.geysermc.geyser.api.network.message.MessageBuffer>>
java.lang.Object
java.lang.Record
org.geysermc.geyser.network.NetworkDefinitionBuilder.HandlerEntry<T>
- Enclosing class:
NetworkDefinitionBuilder<M extends org.geysermc.geyser.api.network.message.Message<? extends org.geysermc.geyser.api.network.message.MessageBuffer>>
public static record NetworkDefinitionBuilder.HandlerEntry<T extends org.geysermc.geyser.api.network.message.Message<? extends org.geysermc.geyser.api.network.message.MessageBuffer>>(org.geysermc.geyser.api.network.message.MessagePriority priority, org.geysermc.geyser.api.network.message.MessageHandler<T extends org.geysermc.geyser.api.network.message.Message<? extends org.geysermc.geyser.api.network.message.MessageBuffer>> handler)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionHandlerEntry(org.geysermc.geyser.api.network.message.MessagePriority priority, org.geysermc.geyser.api.network.message.MessageHandler<T> handler) Creates an instance of aHandlerEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.org.geysermc.geyser.api.network.message.MessageHandler<T> handler()Returns the value of thehandlerrecord component.final inthashCode()Returns a hash code value for this object.org.geysermc.geyser.api.network.message.MessagePrioritypriority()Returns the value of thepriorityrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HandlerEntry
public HandlerEntry(org.geysermc.geyser.api.network.message.MessagePriority priority, org.geysermc.geyser.api.network.message.MessageHandler<T> handler) Creates an instance of aHandlerEntryrecord class.- Parameters:
priority- the value for thepriorityrecord componenthandler- the value for thehandlerrecord component
-
-
Method Details
-
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). -
priority
public org.geysermc.geyser.api.network.message.MessagePriority priority()Returns the value of thepriorityrecord component.- Returns:
- the value of the
priorityrecord component
-
handler
Returns the value of thehandlerrecord component.- Returns:
- the value of the
handlerrecord component
-