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);
}
}
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);
}
}
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();
}
}
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);
}
}
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);
}
}
Aggregations