package at.hannibal2.skyhanni.events import net.minecraft.network.Packet import net.minecraftforge.fml.common.eventhandler.Cancelable @Cancelable open class PacketEvent(val packet: Packet<*>) : LorenzEvent() { var direction: Direction? = null class ReceiveEvent(packet: Packet<*>) : PacketEvent(packet) { init { direction = Direction.INBOUND } } class SendEvent(packet: Packet<*>) : PacketEvent(packet) { init { direction = Direction.OUTBOUND } } enum class Direction { INBOUND, OUTBOUND } }