Package logisticspipes.interfaces

Examples of logisticspipes.interfaces.IGuiOpenControler


public class GuiCardManager extends LogisticsBaseGuiScreen {

  public GuiCardManager(EntityPlayer player) {
    super(180, 180, 0, 0);
    final CardManagmentInventory Cinv = new CardManagmentInventory();
    DummyContainer dummy = new DummyContainer(player, Cinv, new IGuiOpenControler() {
      @Override public void guiOpenedByPlayer(EntityPlayer player) {}
      @Override
      public void guiClosedByPlayer(EntityPlayer player) {
        Cinv.close(player, (int)player.posX, (int)player.posY, (int)player.posZ);
      }
View Full Code Here


        dummy.addRestrictedArmorForPlayerInventory(10, 60);
        return dummy;
       
      case GuiIDs.GUI_Fluid_Basic_ID:
        if(pipe == null || pipe.pipe == null || !((pipe.pipe instanceof PipeFluidBasic))) return null;
        dummy = new DummyContainer(player, ((PipeFluidBasic)pipe.pipe).filterInv, new IGuiOpenControler() {
          @Override
          public void guiOpenedByPlayer(EntityPlayer player) {
            ((PipeFluidBasic)fpipe.pipe).guiOpenedByPlayer(player);
          }
View Full Code Here

  public void openGui(EntityPlayer entityplayer, CoreRoutedPipe pipe) {
    NewGuiHandler.getGui(UpgradeManagerGui.class).setTilePos(pipe.container).open(entityplayer);
  }

  public IGuiOpenControler getGuiController() {
    return new IGuiOpenControler() {
      PlayerCollectionList players = new PlayerCollectionList();
      @Override
      public void guiOpenedByPlayer(EntityPlayer player) {
        players.add(player);
      }
View Full Code Here

  }

  @Override
  public DummyContainer getContainer(EntityPlayer player) {
    final CardManagmentInventory Cinv = new CardManagmentInventory();
    DummyContainer dummy = new DummyContainer(player, Cinv, new IGuiOpenControler() {
      @Override public void guiOpenedByPlayer(EntityPlayer player) {}
      @Override
      public void guiClosedByPlayer(EntityPlayer player) {
        Cinv.close(player,(int)player.posX, (int)player.posY, (int)player.posZ);
      }
View Full Code Here

  @Override
  public DummyContainer getContainer(EntityPlayer player) {
    LogisticsTileGenericPipe tile = this.getPipe(player.getEntityWorld());
    if(tile == null || !(tile.pipe instanceof CoreRoutedPipe)) return null;
    final CoreRoutedPipe pipe = (CoreRoutedPipe) tile.pipe;
    DummyContainer dummy = new DummyContainer(player, null, pipe.getUpgradeManager().getGuiController(), new IGuiOpenControler() {
      //Network Statistics
      @Override
      public void guiOpenedByPlayer(EntityPlayer player) {
        pipe.playerStartWatching(player, 0);
      }
View Full Code Here

TOP

Related Classes of logisticspipes.interfaces.IGuiOpenControler

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.