Examples of addRestrictedSlot()


Examples of logisticspipes.utils.gui.DummyContainer.addRestrictedSlot()

 
 
  public GuiSecurityStation(LogisticsSecurityTileEntity tile, EntityPlayer player) {
    super(280, 260, 0, 0);
    DummyContainer dummy = new DummyContainer(player.inventory, tile.inv);
    dummy.addRestrictedSlot(0, tile.inv, 82, 141, (Item)null);
    dummy.addNormalSlotsForPlayerInventory(10, 175);
    this.inventorySlots = dummy;
    _tile = tile;
    authorized = SimpleServiceLocator.securityStationManager.isAuthorized(tile.getSecId());
  }
View Full Code Here

Examples of logisticspipes.utils.gui.DummyContainer.addRestrictedSlot()

    DummyContainer dummy = new DummyContainer(player, null, pipe.getUpgradeManager().getGuiController());
    dummy.addNormalSlotsForPlayerInventory(10, 135);
   
    // TAB_1 SLOTS
    for(int pipeSlot = 0; pipeSlot < 9; pipeSlot++) {
      TAB_SLOTS_1_1.add(dummy.addRestrictedSlot(pipeSlot, pipe.getUpgradeManager().getInv(), 10 + pipeSlot * 18, 42, new ISlotCheck() {
        @Override
        public boolean isStackAllowed(ItemStack itemStack) {
          if(itemStack == null) return false;
          if(itemStack.getItem() == LogisticsPipes.UpgradeItem) {
            if(!LogisticsPipes.UpgradeItem.getUpgradeForItem(itemStack, null).isAllowed(pipe)) return false;
View Full Code Here

Examples of logisticspipes.utils.gui.DummyContainer.addRestrictedSlot()

        }
      }));
    }
   
    for(int pipeSlot = 0; pipeSlot < 9; pipeSlot++) {
      TAB_SLOTS_1_2.add(dummy.addRestrictedSlot(pipeSlot, pipe.getUpgradeManager().getSneakyInv(), 10 + pipeSlot * 18, 78, new ISlotCheck() {
        @Override
        public boolean isStackAllowed(ItemStack itemStack) {
          if(itemStack == null) return false;
          if(itemStack.getItem() == LogisticsPipes.UpgradeItem) {
            IPipeUpgrade upgrade = LogisticsPipes.UpgradeItem.getUpgradeForItem(itemStack, null);
View Full Code Here

Examples of logisticspipes.utils.gui.DummyContainer.addRestrictedSlot()

        if(!SimpleServiceLocator.securityStationManager.isAuthorized(UUID.fromString(itemStack.getTagCompound().getString("UUID")))) return false;
        return true;
      }
    }, 1));
   
    TAB_SLOTS_4.add(dummy.addRestrictedSlot(0, pipe.container.logicController.diskInv, 14, 36, LogisticsPipes.LogisticsItemDisk));
   
    this.inventorySlots = dummy;
  }
 
  @Override
View Full Code Here

Examples of logisticspipes.utils.gui.DummyContainer.addRestrictedSlot()

public class GuiFreqCardContent extends LogisticsBaseGuiScreen {

  public GuiFreqCardContent(EntityPlayer player, IInventory card) {
    super(180, 130, 0, 0);
    DummyContainer dummy = new DummyContainer(player.inventory, card);
    dummy.addRestrictedSlot(0, card, 82, 15, new ISlotCheck() {
      @Override
      public boolean isStackAllowed(ItemStack itemStack) {
        if(itemStack == null) return false;
        if(itemStack.getItem() != LogisticsPipes.LogisticsItemCard) return false;
        if(itemStack.getItemDamage() != LogisticsItemCard.FREQ_CARD) return false;
View Full Code Here

Examples of logisticspipes.utils.gui.DummyContainer.addRestrictedSlot()

 
  public GuiInvSysConnector(EntityPlayer player, PipeItemsInvSysConnector pipe) {
    super(180,200,0,0);
    DummyContainer dummy = new DummyContainer(player.inventory, pipe.inv);
   
    dummy.addRestrictedSlot(0, pipe.inv, 98, 17, new ISlotCheck() {
      @Override
      public boolean isStackAllowed(ItemStack itemStack) {
        if(itemStack == null) return false;
        if(itemStack.getItem() != LogisticsPipes.LogisticsItemCard) return false;
        if(itemStack.getItemDamage() != LogisticsItemCard.FREQ_CARD) return false;
View Full Code Here

Examples of logisticspipes.utils.gui.DummyContainer.addRestrictedSlot()

      @Override
      public void guiClosedByPlayer(EntityPlayer player) {
        Cinv.close(player, (int)player.posX, (int)player.posY, (int)player.posZ);
      }
    });
    dummy.addRestrictedSlot(0, Cinv, 21, 21, LogisticsPipes.ModuleItem);
    dummy.addRestrictedSlot(1, Cinv, 61, 21, LogisticsPipes.ModuleItem);
    dummy.addRestrictedSlot(2, Cinv, 41, 58, new ISlotCheck() {
      @Override public boolean isStackAllowed(ItemStack itemStack) {return false;}
    });
    dummy.addRestrictedSlot(3, Cinv, 121, 39, LogisticsPipes.LogisticsItemCard);
View Full Code Here

Examples of logisticspipes.utils.gui.DummyContainer.addRestrictedSlot()

      public void guiClosedByPlayer(EntityPlayer player) {
        Cinv.close(player, (int)player.posX, (int)player.posY, (int)player.posZ);
      }
    });
    dummy.addRestrictedSlot(0, Cinv, 21, 21, LogisticsPipes.ModuleItem);
    dummy.addRestrictedSlot(1, Cinv, 61, 21, LogisticsPipes.ModuleItem);
    dummy.addRestrictedSlot(2, Cinv, 41, 58, new ISlotCheck() {
      @Override public boolean isStackAllowed(ItemStack itemStack) {return false;}
    });
    dummy.addRestrictedSlot(3, Cinv, 121, 39, LogisticsPipes.LogisticsItemCard);
    for(int i=4;i<7;i++) {
View Full Code Here

Examples of logisticspipes.utils.gui.DummyContainer.addRestrictedSlot()

        Cinv.close(player, (int)player.posX, (int)player.posY, (int)player.posZ);
      }
    });
    dummy.addRestrictedSlot(0, Cinv, 21, 21, LogisticsPipes.ModuleItem);
    dummy.addRestrictedSlot(1, Cinv, 61, 21, LogisticsPipes.ModuleItem);
    dummy.addRestrictedSlot(2, Cinv, 41, 58, new ISlotCheck() {
      @Override public boolean isStackAllowed(ItemStack itemStack) {return false;}
    });
    dummy.addRestrictedSlot(3, Cinv, 121, 39, LogisticsPipes.LogisticsItemCard);
    for(int i=4;i<7;i++) {
      dummy.addColorSlot(i, Cinv, 101, 21 + (i - 4) * 18);
 
View Full Code Here

Examples of logisticspipes.utils.gui.DummyContainer.addRestrictedSlot()

    dummy.addRestrictedSlot(0, Cinv, 21, 21, LogisticsPipes.ModuleItem);
    dummy.addRestrictedSlot(1, Cinv, 61, 21, LogisticsPipes.ModuleItem);
    dummy.addRestrictedSlot(2, Cinv, 41, 58, new ISlotCheck() {
      @Override public boolean isStackAllowed(ItemStack itemStack) {return false;}
    });
    dummy.addRestrictedSlot(3, Cinv, 121, 39, LogisticsPipes.LogisticsItemCard);
    for(int i=4;i<7;i++) {
      dummy.addColorSlot(i, Cinv, 101, 21 + (i - 4) * 18);
    }
    for(int i=7;i<10;i++) {
      dummy.addColorSlot(i, Cinv, 141, 21 + (i - 7) * 18);
 
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.