Search in sources :

Example 1 with PacketConnectionMode

use of crazypants.enderio.conduits.network.PacketConnectionMode in project EnderIO by SleepyTrousers.

the class BaseSettingsPanel method updateConnectionMode.

private void updateConnectionMode() {
    ConnectionMode mode = ConnectionMode.DISABLED;
    if (insertEnabled && extractEnabled) {
        mode = ConnectionMode.IN_OUT;
    } else if (insertEnabled) {
        mode = ConnectionMode.OUTPUT;
    } else if (extractEnabled) {
        mode = ConnectionMode.INPUT;
    }
    PacketHandler.INSTANCE.sendToServer(new PacketConnectionMode(con, gui.getDir(), mode));
}
Also used : PacketConnectionMode(crazypants.enderio.conduits.network.PacketConnectionMode) ConnectionMode(crazypants.enderio.base.conduit.ConnectionMode) PacketConnectionMode(crazypants.enderio.conduits.network.PacketConnectionMode)

Aggregations

ConnectionMode (crazypants.enderio.base.conduit.ConnectionMode)1 PacketConnectionMode (crazypants.enderio.conduits.network.PacketConnectionMode)1