接口 IPacketFlowExtension
- 所有已知实现类:
PacketFlow
public interface IPacketFlowExtension
Extension for
PacketFlow
to add some utility methods.-
方法概要
修饰符和类型方法说明default net.neoforged.fml.LogicalSide
返回 theLogicalSide
that is receiving packets in thisPacketFlow
。default boolean
返回 an indication of whether thisPacketFlow
is clientbound。default boolean
返回 an indication of whether thisPacketFlow
is serverbound。default PacketFlow
self()
返回 thePacketFlow
this extension is applied to。
-
方法详细资料
-
self
返回 thePacketFlow
this extension is applied to。- 返回:
- the
PacketFlow
this extension is applied to
-
isClientbound
default boolean isClientbound()返回 an indication of whether thisPacketFlow
is clientbound。- 返回:
- an indication of whether this
PacketFlow
is clientbound
-
isServerbound
default boolean isServerbound()返回 an indication of whether thisPacketFlow
is serverbound。- 返回:
- an indication of whether this
PacketFlow
is serverbound
-
getReceptionSide
default net.neoforged.fml.LogicalSide getReceptionSide()返回 theLogicalSide
that is receiving packets in thisPacketFlow
。- 返回:
- the
LogicalSide
that is receiving packets in thisPacketFlow
-