Interface IPacketFlowExtension
- All Known Implementing Classes:
PacketFlow
public interface IPacketFlowExtension
Extension for
PacketFlow
to add some utility methods.-
Method Summary
Modifier and TypeMethodDescriptiondefault net.neoforged.fml.LogicalSide
Returns theLogicalSide
that is receiving packets in thisPacketFlow
.default boolean
Returns an indication of whether thisPacketFlow
is clientbound.default boolean
Returns an indication of whether thisPacketFlow
is serverbound.default PacketFlow
self()
Returns thePacketFlow
this extension is applied to.
-
Method Details
-
self
Returns thePacketFlow
this extension is applied to.- Returns:
- the
PacketFlow
this extension is applied to
-
isClientbound
default boolean isClientbound()Returns an indication of whether thisPacketFlow
is clientbound.- Returns:
- an indication of whether this
PacketFlow
is clientbound
-
isServerbound
default boolean isServerbound()Returns an indication of whether thisPacketFlow
is serverbound.- Returns:
- an indication of whether this
PacketFlow
is serverbound
-
getReceptionSide
default net.neoforged.fml.LogicalSide getReceptionSide()Returns theLogicalSide
that is receiving packets in thisPacketFlow
.- Returns:
- the
LogicalSide
that is receiving packets in thisPacketFlow
-