Package org.geysermc.geyser.network
Record Class NetworkDefinitionBuilder.RegistrationImpl<M 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.RegistrationImpl<M>
- All Implemented Interfaces:
org.geysermc.geyser.api.event.bedrock.SessionDefineNetworkChannelsEvent.Registration<M>
- Enclosing class:
NetworkDefinitionBuilder<M extends org.geysermc.geyser.api.network.message.Message<? extends org.geysermc.geyser.api.network.message.MessageBuffer>>
public static record NetworkDefinitionBuilder.RegistrationImpl<M extends org.geysermc.geyser.api.network.message.Message<? extends org.geysermc.geyser.api.network.message.MessageBuffer>>(org.geysermc.geyser.api.network.ProtocolState protocolState, NetworkDefinitionBuilder.HandlerEntry<M extends org.geysermc.geyser.api.network.message.Message<? extends org.geysermc.geyser.api.network.message.MessageBuffer>> handler, NetworkDefinitionBuilder.SidedHandlerEntry<M extends org.geysermc.geyser.api.network.message.Message<? extends org.geysermc.geyser.api.network.message.MessageBuffer>> clientbound, NetworkDefinitionBuilder.SidedHandlerEntry<M extends org.geysermc.geyser.api.network.message.Message<? extends org.geysermc.geyser.api.network.message.MessageBuffer>> serverbound, String tag, String beforeTag, String afterTag)
extends Record
implements org.geysermc.geyser.api.event.bedrock.SessionDefineNetworkChannelsEvent.Registration<M>
-
Constructor Summary
ConstructorsConstructorDescriptionRegistrationImpl(org.geysermc.geyser.api.network.ProtocolState protocolState, NetworkDefinitionBuilder.HandlerEntry<M> handler, NetworkDefinitionBuilder.SidedHandlerEntry<M> clientbound, NetworkDefinitionBuilder.SidedHandlerEntry<M> serverbound, String tag, String beforeTag, String afterTag) Creates an instance of aRegistrationImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionafterTag()Returns the value of theafterTagrecord component.Returns the value of thebeforeTagrecord component.Returns the value of theclientboundrecord component.final booleanIndicates whether some other object is "equal to" this one.handler()Returns the value of thehandlerrecord component.final inthashCode()Returns a hash code value for this object.org.geysermc.geyser.api.network.ProtocolStateReturns the value of theprotocolStaterecord component.Returns the value of theserverboundrecord component.tag()Returns the value of thetagrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RegistrationImpl
public RegistrationImpl(org.geysermc.geyser.api.network.ProtocolState protocolState, NetworkDefinitionBuilder.HandlerEntry<M> handler, NetworkDefinitionBuilder.SidedHandlerEntry<M> clientbound, NetworkDefinitionBuilder.SidedHandlerEntry<M> serverbound, String tag, String beforeTag, String afterTag) Creates an instance of aRegistrationImplrecord class.- Parameters:
protocolState- the value for theprotocolStaterecord componenthandler- the value for thehandlerrecord componentclientbound- the value for theclientboundrecord componentserverbound- the value for theserverboundrecord componenttag- the value for thetagrecord componentbeforeTag- the value for thebeforeTagrecord componentafterTag- the value for theafterTagrecord 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). -
protocolState
public org.geysermc.geyser.api.network.ProtocolState protocolState()Returns the value of theprotocolStaterecord component.- Returns:
- the value of the
protocolStaterecord component
-
handler
Returns the value of thehandlerrecord component.- Returns:
- the value of the
handlerrecord component
-
clientbound
Returns the value of theclientboundrecord component.- Returns:
- the value of the
clientboundrecord component
-
serverbound
Returns the value of theserverboundrecord component.- Returns:
- the value of the
serverboundrecord component
-
tag
Returns the value of thetagrecord component.- Returns:
- the value of the
tagrecord component
-
beforeTag
Returns the value of thebeforeTagrecord component.- Returns:
- the value of the
beforeTagrecord component
-
afterTag
Returns the value of theafterTagrecord component.- Returns:
- the value of the
afterTagrecord component
-