Examples of PacketGuiReturn


Examples of buildcraft.core.network.PacketGuiReturn

  }

  @Override
  public void onGuiClosed() {
    if (pipe.getWorld().isRemote) {
      PacketGuiReturn pkt = new PacketGuiReturn(pipe.getContainer());
      pkt.sendPacket();
    }

    super.onGuiClosed();
  }
View Full Code Here

Examples of buildcraft.core.network.PacketGuiReturn

        ByteArrayOutputStream bytes = new ByteArrayOutputStream();
        DataOutputStream data = new DataOutputStream(bytes);
        data.writeByte(slot);
        EnumColor color = colors.getCurrent();
        data.writeByte(color == null ? 0 : color.ordinal() + 1);
        PacketGuiReturn pkt = new PacketGuiReturn(pipe.getContainer(), bytes.toByteArray());
        pkt.sendPacket();
      } catch (IOException ex) {
      }
    }
View Full Code Here

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

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

    @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

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

    @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

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

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

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

    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

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

    @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

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

    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

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

    @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
TOP
Copyright © 2018 www.massapi.com. 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.