Tabnine Logo
IItemList.forEach
Code IndexAdd Tabnine to your IDE (free)

How to use
forEach
method
in
appeng.api.storage.data.IItemList

Best Java code snippets using appeng.api.storage.data.IItemList.forEach (Showing top 2 results out of 315)

origin: Nividica/ThaumicEnergistics

@Override
public IItemList<IAEEssentiaStack> getAvailableItems(IItemList<IAEEssentiaStack> list) {
  this.storedAspects.forEach(list::add);
  return list;
}
origin: AppliedEnergistics/Applied-Energistics-2

public void cancel()
{
  if( this.myLastLink != null )
  {
    this.myLastLink.cancel();
  }
  final IItemList<IAEItemStack> list;
  this.getListOfItem( list = AEApi.instance().storage().getStorageChannel( IItemStorageChannel.class ).createList(), CraftingItemList.ALL );
  for( final IAEItemStack is : list )
  {
    this.postChange( is, this.machineSrc );
  }
  this.isComplete = true;
  this.myLastLink = null;
  this.tasks.clear();
  // final ImmutableSet<IAEItemStack> items = ImmutableSet.copyOf( this.waitingFor );
  final List<IAEItemStack> items = new ArrayList<>( this.waitingFor.size() );
  this.waitingFor.forEach( stack -> items.add( stack.copy().setStackSize( -stack.getStackSize() ) ) );
  this.waitingFor.resetStatus();
  for( final IAEItemStack is : items )
  {
    this.postCraftingStatusChange( is );
  }
  this.finalOutput = null;
  this.updateCPU();
  this.storeItems(); // marks dirty
}
appeng.api.storage.dataIItemListforEach

Popular methods of IItemList

  • add
  • isEmpty
  • findPrecise
  • resetStatus
  • size
  • getFirstItem
  • addCrafting
  • addRequestable
  • addStorage
  • findFuzzy
  • iterator
  • spliterator
  • iterator,
  • spliterator

Popular in Java

  • Reading from database using SQL prepared statement
  • getApplicationContext (Context)
  • getSharedPreferences (Context)
  • compareTo (BigDecimal)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • JList (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now