Package mekanism.common.tank

Examples of mekanism.common.tank.DynamicTankCache


        {
          TileEntityDynamicTank dynamicTank = (TileEntityDynamicTank)obj.getTileEntity(world);

          if(dynamicTank != null)
          {
            dynamicTank.cachedData = new DynamicTankCache();
            dynamicTank.inventory = new ItemStack[2];
            dynamicTank.inventoryID = -1;
          }
        }
View Full Code Here


   * @param id - inventory ID to pull
   * @return correct Dynamic Tank inventory cache
   */
  public static DynamicTankCache pullInventory(World world, int id)
  {
    DynamicTankCache toReturn = Mekanism.dynamicInventories.get(id);

    for(Coord4D obj : Mekanism.dynamicInventories.get(id).locations)
    {
      TileEntityDynamicTank tileEntity = (TileEntityDynamicTank)obj.getTileEntity(world);

      if(tileEntity != null)
      {
        tileEntity.cachedData = new DynamicTankCache();
        tileEntity.inventory = new ItemStack[2];
        tileEntity.inventoryID = -1;
      }
    }

View Full Code Here

TOP

Related Classes of mekanism.common.tank.DynamicTankCache

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.