Package logisticspipes.utils

Examples of logisticspipes.utils.CardManagmentInventory


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);
      }
    });
    dummy.addRestrictedSlot(0, Cinv, 21, 21, LogisticsPipes.ModuleItem);
    dummy.addRestrictedSlot(1, Cinv, 61, 21, LogisticsPipes.ModuleItem);
    dummy.addRestrictedSlot(2, Cinv, 41, 58, new ISlotCheck() {
View Full Code Here


    return new GuiCardManager(player);
  }

  @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);
      }
    });
    for(int i=0;i<2;i++) {
      dummy.addRestrictedSlot(i, Cinv, 0, 0, LogisticsPipes.ModuleItem);
    }
View Full Code Here

TOP

Related Classes of logisticspipes.utils.CardManagmentInventory

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.