接口 IPacketFlowExtension

所有已知实现类:
PacketFlow

public interface IPacketFlowExtension
Extension for PacketFlow to add some utility methods.
  • 方法概要

    修饰符和类型
    方法
    说明
    default net.neoforged.fml.LogicalSide
    返回 the LogicalSide that is receiving packets in this PacketFlow
    default boolean
    返回 an indication of whether this PacketFlow is clientbound。
    default boolean
    返回 an indication of whether this PacketFlow is serverbound。
    default PacketFlow
    返回 the PacketFlow this extension is applied to。
  • 方法详细资料

    • self

      default PacketFlow self()
      返回 the PacketFlow this extension is applied to。
      返回:
      the PacketFlow this extension is applied to
    • isClientbound

      default boolean isClientbound()
      返回 an indication of whether this PacketFlow is clientbound。
      返回:
      an indication of whether this PacketFlow is clientbound
    • isServerbound

      default boolean isServerbound()
      返回 an indication of whether this PacketFlow is serverbound。
      返回:
      an indication of whether this PacketFlow is serverbound
    • getReceptionSide

      default net.neoforged.fml.LogicalSide getReceptionSide()
      返回 the LogicalSide that is receiving packets in this PacketFlow
      返回:
      the LogicalSide that is receiving packets in this PacketFlow