Package appeng.container

Examples of appeng.container.ContainerOpenContext


    if ( sender.openContainer instanceof AEBaseContainer )
    {
      AEBaseContainer baseContainer = (AEBaseContainer) sender.openContainer;
      if ( action == InventoryAction.AUTO_CRAFT )
      {
        ContainerOpenContext context = baseContainer.openContext;
        if ( context != null )
        {
          TileEntity te = context.getTile();
          Platform.openGUI( sender, te, baseContainer.openContext.side, GuiBridge.GUI_CRAFTING_AMOUNT );

          if ( sender.openContainer instanceof ContainerCraftAmount )
          {
            ContainerCraftAmount cca = (ContainerCraftAmount) sender.openContainer;
View Full Code Here


  {
    Container c = player.openContainer;
    if ( c instanceof AEBaseContainer )
    {
      AEBaseContainer bc = (AEBaseContainer) c;
      ContainerOpenContext context = bc.openContext;
      if ( context != null )
      {
        TileEntity te = context.getTile();
        Platform.openGUI( player, te, context.side, newGui );
      }
    }
  }
View Full Code Here

        try
        {
          ICraftingGrid cg = g.getCache( ICraftingGrid.class );
          futureJob = cg.beginCraftingJob( cca.getWorld(), cca.getGrid(), cca.getActionSrc(), cca.whatToMake, null );

          ContainerOpenContext context = cca.openContext;
          if ( context != null )
          {
            TileEntity te = context.getTile();
            Platform.openGUI( player, te, cca.openContext.side, GuiBridge.GUI_CRAFTING_CONFIRM );

            if ( player.openContainer instanceof ContainerCraftConfirm )
            {
              ContainerCraftConfirm ccc = (ContainerCraftConfirm) player.openContainer;
View Full Code Here

TOP

Related Classes of appeng.container.ContainerOpenContext

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.