@Override public T findPrecise( final T i ) { return this.target.findPrecise( i ); }
@Override public boolean isPrioritized( final IAEItemStack input ) { return this.itemListCache.findPrecise( input ) != null; }
@Override public IAEItemStack injectItems( final IAEItemStack input, final Actionable mode, final IActionSource src ) { final IAEItemStack local = this.itemListCache.findPrecise( input ); if( local == null ) { return input; } return null; }
@Override public boolean canAccept( final IAEItemStack input ) { return this.itemListCache.findPrecise( input ) != null; }
@Override public boolean isListed( final T input ) { return this.list.findPrecise( input ) != null; }
public IAEItemStack making( final IAEItemStack what ) { return this.waitingFor.findPrecise( what ); }
public boolean canAccept( final IAEItemStack input ) { if( input instanceof IAEItemStack ) { final IAEItemStack is = this.waitingFor.findPrecise( input ); if( is != null && is.getStackSize() > 0 ) { return true; } } return false; }
void ignore( final IAEItemStack what ) { final IAEItemStack list = this.localCache.findPrecise( what ); if( list != null ) { list.setStackSize( 0 ); } } }
@Override public IAEItemStack extractItems( final IAEItemStack request, final Actionable mode, final IActionSource src ) { final IAEItemStack local = this.itemListCache.findPrecise( request ); if( local == null ) { return null; } return request.copy(); }
private long getTotal( final IAEItemStack is ) { final IAEItemStack a = this.storage.findPrecise( is ); final IAEItemStack b = this.active.findPrecise( is ); final IAEItemStack c = this.pending.findPrecise( is ); long total = 0; if( a != null ) { total += a.getStackSize(); } if( b != null ) { total += b.getStackSize(); } if( c != null ) { total += c.getStackSize(); } return total; }
private long getTotal( final IAEItemStack is ) { final IAEItemStack a = this.storage.findPrecise( is ); final IAEItemStack c = this.pending.findPrecise( is ); final IAEItemStack m = this.missing.findPrecise( is ); long total = 0; if( a != null ) { total += a.getStackSize(); } if( c != null ) { total += c.getStackSize(); } if( m != null ) { total += m.getStackSize(); } return total; }
public void postUpdate( final IAEFluidStack is ) { final IAEFluidStack st = this.list.findPrecise( is ); if( st != null ) { st.reset(); st.add( is ); } else { this.list.add( is ); } }
public void postUpdate( final IAEItemStack is ) { final IAEItemStack st = this.list.findPrecise( is ); if( st != null ) { st.reset(); st.add( is ); } else { this.list.add( is ); } }
private void handleInput( final IItemList<IAEItemStack> s, final IAEItemStack l ) { IAEItemStack a = s.findPrecise( l ); if( l.getStackSize() <= 0 ) { if( a != null ) { a.reset(); } } else { if( a == null ) { s.add( l.copy() ); a = s.findPrecise( l ); } if( a != null ) { a.setStackSize( l.getStackSize() ); } } }
private void handleInput( final IItemList<IAEItemStack> s, final IAEItemStack l ) { IAEItemStack a = s.findPrecise( l ); if( l.getStackSize() <= 0 ) { if( a != null ) { a.reset(); } } else { if( a == null ) { s.add( l.copy() ); a = s.findPrecise( l ); } if( a != null ) { a.setStackSize( l.getStackSize() ); } } }
private void updateReportingValue( final IMEMonitor<IAEItemStack> itemInventory ) { if( this.configuredItem != null ) { final IAEItemStack result = itemInventory.getStorageList().findPrecise( this.configuredItem ); if( result == null ) { this.configuredItem.setStackSize( 0 ); } else { this.configuredItem.setStackSize( result.getStackSize() ); } } }
@Override public IAEItemStack extractItems( final IAEItemStack request, final Actionable mode, final IActionSource src ) { if( this.hasPermission( src ) ) { final IAEItemStack target = this.getStoredItems().findPrecise( request ); if( target != null ) { final IAEItemStack output = target.copy(); if( mode == Actionable.SIMULATE ) { return output; } target.setStackSize( 0 ); this.securityTile.inventoryChanged(); return output; } } return null; }
private void updateReportingValue( final IMEMonitor<IAEFluidStack> monitor ) { final IAEFluidStack myStack = this.config.getFluidInSlot( 0 ); if( myStack == null ) { this.lastReportedValue = 0; for( final IAEFluidStack st : monitor.getStorageList() ) { this.lastReportedValue += st.getStackSize(); } } else { final IAEFluidStack r = monitor.getStorageList().findPrecise( myStack ); if( r == null ) { this.lastReportedValue = 0; } else { this.lastReportedValue = r.getStackSize(); } } this.updateState(); }
final T l = this.getCellItems().findPrecise( request ); if( l != null )
final IAEItemStack list = this.localCache.findPrecise( request ); if( list == null || list.getStackSize() == 0 )