Search in sources :

Example 1 with IGuiReturnHandler

use of mods.railcraft.common.util.network.IGuiReturnHandler 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)

Aggregations

IGuiReturnHandler (mods.railcraft.common.util.network.IGuiReturnHandler)1 PacketGuiReturn (mods.railcraft.common.util.network.PacketGuiReturn)1