Search in sources :

Example 11 with PacketGuiReturn

use of mods.railcraft.common.util.network.PacketGuiReturn in project Railcraft by Railcraft.

the class GuiTrackPriming method onGuiClosed.

@Override
public void onGuiClosed() {
    track.setFuse(fuse);
    if (Game.isClient(track.theWorldAsserted())) {
        PacketGuiReturn pkt = new PacketGuiReturn((IGuiReturnHandler) track.getTile());
        PacketDispatcher.sendToServer(pkt);
    }
}
Also used : PacketGuiReturn(mods.railcraft.common.util.network.PacketGuiReturn)

Example 12 with PacketGuiReturn

use of mods.railcraft.common.util.network.PacketGuiReturn in project Railcraft by Railcraft.

the class GuiManipulatorCartIC2Unloader method onGuiClosed.

@Override
public void onGuiClosed() {
    if (Game.isClient(tile.getWorld())) {
        PacketGuiReturn pkt = new PacketGuiReturn(tile);
        PacketDispatcher.sendToServer(pkt);
    }
}
Also used : PacketGuiReturn(mods.railcraft.common.util.network.PacketGuiReturn)

Example 13 with PacketGuiReturn

use of mods.railcraft.common.util.network.PacketGuiReturn in project Railcraft by Railcraft.

the class GuiDetectorTank method onGuiClosed.

@Override
public void onGuiClosed() {
    super.onGuiClosed();
    if (Game.isClient(tile.getWorld())) {
        detector.getButtonController().setCurrentState(button.getController().getCurrentState());
        PacketGuiReturn pkt = new PacketGuiReturn(tile);
        PacketDispatcher.sendToServer(pkt);
    }
}
Also used : PacketGuiReturn(mods.railcraft.common.util.network.PacketGuiReturn)

Example 14 with PacketGuiReturn

use of mods.railcraft.common.util.network.PacketGuiReturn in project Railcraft by Railcraft.

the class GuiDetectorTrain method onGuiClosed.

@Override
public void onGuiClosed() {
    detector.setTrainSize(trainSize);
    if (Game.isClient(tile.getWorld())) {
        PacketGuiReturn pkt = new PacketGuiReturn(tile);
        PacketDispatcher.sendToServer(pkt);
    }
}
Also used : PacketGuiReturn(mods.railcraft.common.util.network.PacketGuiReturn)

Aggregations

PacketGuiReturn (mods.railcraft.common.util.network.PacketGuiReturn)14 BitSet (java.util.BitSet)1 EnumMap (java.util.EnumMap)1 Map (java.util.Map)1 SignalAspect (mods.railcraft.api.signals.SignalAspect)1 IGuiReturnHandler (mods.railcraft.common.util.network.IGuiReturnHandler)1