Interface IPacketFlowExtension

All Known Implementing Classes:
PacketFlow

public interface IPacketFlowExtension
Extension for PacketFlow to add some utility methods.
  • Method Details

    • self

      default PacketFlow self()
      Returns the PacketFlow this extension is applied to.
      Returns:
      the PacketFlow this extension is applied to
    • isClientbound

      default boolean isClientbound()
      Returns an indication of whether this PacketFlow is clientbound.
      Returns:
      an indication of whether this PacketFlow is clientbound
    • isServerbound

      default boolean isServerbound()
      Returns an indication of whether this PacketFlow is serverbound.
      Returns:
      an indication of whether this PacketFlow is serverbound
    • getReceptionSide

      default LogicalSide getReceptionSide()
      Returns the LogicalSide that is receiving packets in this PacketFlow.
      Returns:
      the LogicalSide that is receiving packets in this PacketFlow