Interface BaseProtocol<FLOW,PROTOCOL extends BaseProtocol<FLOW,PROTOCOL>>

All Known Subinterfaces:
PayloadFlow<BUF,BASE>, PayloadHandlerFlow<BUF,BASE>, PayloadHandlerProtocol<BUF,BASE>, PayloadProtocol<BUF,BASE>, SimpleFlow<BUF,BASE>, SimpleHandlerFlow<BUF,BASE>, SimpleHandlerProtocol<BUF,BASE>, SimpleProtocol<BUF,BASE>
All Known Implementing Classes:
PayloadChannel.Builder.Flow, PayloadChannel.Builder.HandlerFlow, PayloadChannel.Builder.HandlerProtocol, PayloadChannel.Builder.Protocol, SimpleChannel.Flow, SimpleChannel.HandlerFlow, SimpleChannel.HandlerProtocol, SimpleChannel.Protocol

public interface BaseProtocol<FLOW,PROTOCOL extends BaseProtocol<FLOW,PROTOCOL>>
  • Method Details

    • flow

      FLOW flow(@Nullable @Nullable PacketFlow flow)
    • flow

      default PROTOCOL flow(@Nullable @Nullable PacketFlow flow, Consumer<FLOW> consumer)
      Consumer version of flow(PacketFlow). The Consumer will immediately be called with the created protocol.
    • clientbound

      default FLOW clientbound()
      Creates a builder that validates both current protocol, and that packets are send from Server to Client
    • clientbound

      default PROTOCOL clientbound(Consumer<FLOW> consumer)
      Consumer version of clientbound(). The Consumer will immediately be called with the created flow.
    • serverbound

      default FLOW serverbound()
      Creates a builder that validates both current protocol, and that packets are send from Client to Server
    • serverbound

      default PROTOCOL serverbound(Consumer<FLOW> consumer)
      Consumer version of serverbound(). The Consumer will immediately be called with the created flow.
    • bidirectional

      default FLOW bidirectional()
      Creates a builder that validates both current protocol, and that packets are send from either flow
    • bidirectional

      default PROTOCOL bidirectional(Consumer<FLOW> consumer)
      Consumer version of bidirectional(). The Consumer will immediately be called with the created flow.
    • flow

      default PROTOCOL flow(Consumer<FLOW> consumer)
      An alias for bidirectional(Consumer). The Consumer will immediately be called with the created flow.