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.LogicalSideReturns theLogicalSidethat is receiving packets in thisPacketFlow.default booleanReturns an indication of whether thisPacketFlowis clientbound.default booleanReturns an indication of whether thisPacketFlowis serverbound.default PacketFlowself()Returns thePacketFlowthis extension is applied to.
-
Method Details
-
self
Returns thePacketFlowthis extension is applied to.- Returns:
- the
PacketFlowthis extension is applied to
-
isClientbound
default boolean isClientbound()Returns an indication of whether thisPacketFlowis clientbound.- Returns:
- an indication of whether this
PacketFlowis clientbound
-
isServerbound
default boolean isServerbound()Returns an indication of whether thisPacketFlowis serverbound.- Returns:
- an indication of whether this
PacketFlowis serverbound
-
getReceptionSide
default net.neoforged.fml.LogicalSide getReceptionSide()Returns theLogicalSidethat is receiving packets in thisPacketFlow.- Returns:
- the
LogicalSidethat is receiving packets in thisPacketFlow
-