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 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 a RegistrationImpl record class.
      Parameters:
      protocolState - the value for the protocolState record component
      handler - the value for the handler record component
      clientbound - the value for the clientbound record component
      serverbound - the value for the serverbound record component
      tag - the value for the tag record component
      beforeTag - the value for the beforeTag record component
      afterTag - the value for the afterTag record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • protocolState

      public org.geysermc.geyser.api.network.ProtocolState protocolState()
      Returns the value of the protocolState record component.
      Returns:
      the value of the protocolState record component
    • handler

      Returns the value of the handler record component.
      Returns:
      the value of the handler record component
    • clientbound

      Returns the value of the clientbound record component.
      Returns:
      the value of the clientbound record component
    • serverbound

      Returns the value of the serverbound record component.
      Returns:
      the value of the serverbound record component
    • tag

      public String tag()
      Returns the value of the tag record component.
      Returns:
      the value of the tag record component
    • beforeTag

      public String beforeTag()
      Returns the value of the beforeTag record component.
      Returns:
      the value of the beforeTag record component
    • afterTag

      public String afterTag()
      Returns the value of the afterTag record component.
      Returns:
      the value of the afterTag record component