Search in sources :

Example 1 with PacketGuiReturn

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

the class GuiDetectorVillager method onGuiClosed.

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

Example 2 with PacketGuiReturn

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

the class GuiManipulatorCartIC2Loader method onGuiClosed.

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

Example 3 with PacketGuiReturn

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

the class GuiTrackLauncher method onGuiClosed.

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

Example 4 with PacketGuiReturn

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

the class GuiAspectAction method onGuiClosed.

@Override
public void onGuiClosed() {
    if (changed && actionManager instanceof IGuiReturnHandler && canChange()) {
        prepareForPacket();
        PacketGuiReturn pkt = new PacketGuiReturn((IGuiReturnHandler) actionManager);
        PacketDispatcher.sendToServer(pkt);
    }
}
Also used : IGuiReturnHandler(mods.railcraft.common.util.network.IGuiReturnHandler) PacketGuiReturn(mods.railcraft.common.util.network.PacketGuiReturn)

Example 5 with PacketGuiReturn

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

the class GuiDetectorAnimal 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)

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