Package mods.railcraft.common.util.network

Examples of mods.railcraft.common.util.network.PacketGuiReturn


            filter = DetectorItem.FilterMode.values().length - 1;
        if (filter >= DetectorItem.FilterMode.values().length)
            filter = 0;
        detector.setFilterMode(DetectorItem.FilterMode.values()[filter]);
        if (Game.isNotHost(tile.getWorld())) {
            PacketGuiReturn pkt = new PacketGuiReturn(tile);
            PacketDispatcher.sendToServer(pkt);
        }
    }
View Full Code Here


    @Override
    public void onGuiClosed() {
        if (Game.isNotHost(tile.getWorld())) {
            tile.defaultAspect = defaultAspect;
            tile.poweredAspect = poweredAspect;
            PacketGuiReturn pkt = new PacketGuiReturn(tile);
            PacketDispatcher.sendToServer(pkt);
        }
    }
View Full Code Here

    @Override
    public void onGuiClosed() {
        if (Game.isNotHost(tile.getWorld())) {
            detector.setProfession(professions.getCurrent());
            detector.setMode(mode);
            PacketGuiReturn pkt = new PacketGuiReturn(tile);
            PacketDispatcher.sendToServer(pkt);
        }
    }
View Full Code Here

    @Override
    public void onGuiClosed() {
        detector.setTrainSize(trainSize);
        if (Game.isNotHost(tile.getWorld())) {
            PacketGuiReturn pkt = new PacketGuiReturn(tile);
            PacketDispatcher.sendToServer(pkt);
        }
    }
View Full Code Here

    public void onGuiClosed() {
        if (changed && actionManager instanceof IGuiReturnHandler && canChange()) {
            for (SignalAspect aspect : SignalAspect.values()) {
                actionManager.doActionOnAspect(aspect, aspects[aspect.ordinal()]);
            }
            PacketGuiReturn pkt = new PacketGuiReturn((IGuiReturnHandler) actionManager);
            PacketDispatcher.sendToServer(pkt);
        }
    }
View Full Code Here

    @Override
    public void onGuiClosed() {
        track.setArea(radius);
        if(Game.isNotHost(track.getWorld())) {
            PacketGuiReturn pkt = new PacketGuiReturn((IGuiReturnHandler)track.tileEntity);
            pkt.sendPacket();
        }
    }
View Full Code Here

    public void onGuiClosed() {
        super.onGuiClosed();

        if (Game.isNotHost(tile.getWorld())) {
            detector.getButtonController().setCurrentState(button.getController().getCurrentState());
            PacketGuiReturn pkt = new PacketGuiReturn(tile);
            PacketDispatcher.sendToServer(pkt);
        }
    }
View Full Code Here

    @Override
    public void onGuiClosed() {
        if (Game.isNotHost(tile.getWorld())) {
            tile.setWaitIfEmpty(waitIfEmpty);
            tile.setWaitTillFull(waitTillFull);
            PacketGuiReturn pkt = new PacketGuiReturn(tile);
            PacketDispatcher.sendToServer(pkt);
        }
    }
View Full Code Here

    }

    @Override
    public void onGuiClosed() {
        if (Game.isNotHost(tile.getWorld())) {
            PacketGuiReturn pkt = new PacketGuiReturn(tile);
            PacketDispatcher.sendToServer(pkt);
        }
    }
View Full Code Here

    }

    @Override
    public void onGuiClosed() {
        if (Game.isNotHost(tile.getWorld())) {
            PacketGuiReturn pkt = new PacketGuiReturn(tile);
            PacketDispatcher.sendToServer(pkt);
        }
    }
View Full Code Here

TOP

Related Classes of mods.railcraft.common.util.network.PacketGuiReturn

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.