@Override public void resetStatus() { for( final IAEItemStack i : this ) { i.reset(); } }
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 ); } }
out.reset(); out.setCraftable( true );
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() ); } } }
public void setJob( final MECraftingInventory storage, final CraftingCPUCluster craftingCPUCluster, final IActionSource src ) throws CraftBranchFailure { for( final IAEItemStack i : this.used ) { final IAEItemStack ex = storage.extractItems( i, Actionable.MODULATE, src ); if( ex == null || ex.getStackSize() != i.getStackSize() ) { throw new CraftBranchFailure( i, i.getStackSize() ); } craftingCPUCluster.addStorage( ex ); } if( this.howManyEmitted > 0 ) { final IAEItemStack i = this.what.copy().reset(); i.setStackSize( this.howManyEmitted ); craftingCPUCluster.addEmitable( i ); } for( final CraftingTreeProcess pro : this.nodes ) { pro.setJob( storage, craftingCPUCluster, src ); } }
list.reset(); if( this.logExtracted )
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()); } } }
toExtract.reset(); toExtract.setStackSize(needed.getStackSize());