@Override public void postChange( final IBaseMonitor<IAEItemStack> monitor, final Iterable<IAEItemStack> change, final IActionSource actionSource ) { for( IAEItemStack is : change ) { is = is.copy(); is.setStackSize( 1 ); this.list.add( is ); } }
void ignore( final IAEItemStack what ) { final IAEItemStack list = this.localCache.findPrecise( what ); if( list != null ) { list.setStackSize( 0 ); } } }
void addTask( IAEItemStack what, final long crafts, final ICraftingPatternDetails details, final int depth ) { if( crafts > 0 ) { what = what.copy(); what.setStackSize( what.getStackSize() * crafts ); this.crafting.add( what ); } }
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 ); } }
@Override public void add( T option ) { if( option != null && option.isCraftable() ) { option = option.copy(); option.setCraftable( false ); } this.target.add( option ); }
public CraftingCalculationFailure( final IAEItemStack what, final long howMany ) { super( "this should have been caught!" ); this.missing = what.copy(); this.missing.setStackSize( howMany ); } }
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 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; }
@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(); }
@Override public ItemStack getStackInSlot( final int var1 ) { if( this.inv[var1] == null ) { return ItemStack.EMPTY; } return this.inv[var1].createItemStack(); }
@Override public boolean isEmpty() { return this.target.isEmpty(); }
@Override public FluidStack getContents() { return AEFluidInventory.this.fluids[this.slot] == null ? null : AEFluidInventory.this.fluids[this.slot].getFluidStack(); }
@Override public int size() { return this.target.size(); }
@Override public boolean fuzzyComparison( final IAEFluidStack other, final FuzzyMode mode ) { return this.fluid == other.getFluid(); }
@Override public void resetStatus() { for( final IAEFluidStack i : this ) { i.reset(); } }
@Override public Collection<T> findFuzzy( final T input, final FuzzyMode fuzzy ) { return this.target.findFuzzy( input, fuzzy ); }
@Override public void addRequestable( final T option ) { this.target.addRequestable( option ); }
@Override public boolean isEmpty() { return this.list.isEmpty(); }