Package appeng.me.storage

Examples of appeng.me.storage.MEInventoryHandler


  private <StackType extends IAEStack> MEMonitorHandler<StackType> wrap(IMEInventoryHandler h)
  {
    if ( h == null )
      return null;

    MEInventoryHandler ih = new MEInventoryHandler( h, h.getChannel() );
    ih.myPriority = priority;

    MEMonitorHandler<StackType> g = new ChestMonitorHandler<StackType>( ih );
    g.addListener( new ChestNetNotifier( h.getChannel() ), g );
View Full Code Here


        if ( inv != null )
        {
          checkInterfaceVsStorageBus( target, side.getOpposite() );

          handler = new MEInventoryHandler( inv, StorageChannel.ITEMS );

          handler.myAccess = (AccessRestriction) this.getConfigManager().getSetting( Settings.ACCESS );
          handler.myWhitelist = getInstalledUpgrades( Upgrades.INVERTER ) > 0 ? IncludeExclude.BLACKLIST : IncludeExclude.WHITELIST;
          handler.myPriority = priority;
View Full Code Here

      return (state >> (slot * 3)) & 3;

    ItemStack cell = inv.getStackInSlot( 2 );
    ICellHandler ch = handlersBySlot[slot];

    MEInventoryHandler handler = invBySlot[slot];
    if ( handler == null )
      return 0;

    if ( handler.getChannel() == StorageChannel.ITEMS )
    {
      if ( ch != null )
        return ch.getStatusForCell( cell, handler.getInternal() );
    }

    if ( handler.getChannel() == StorageChannel.FLUIDS )
    {
      if ( ch != null )
        return ch.getStatusForCell( cell, handler.getInternal() );
    }

    return 0;
  }
View Full Code Here

TOP

Related Classes of appeng.me.storage.MEInventoryHandler

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.