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

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

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

origin: AppliedEnergistics/Applied-Energistics-2

@Override
public void postChange( IBaseMonitor<IAEFluidStack> monitor, Iterable<IAEFluidStack> change, IActionSource actionSource )
{
  for( final IAEFluidStack is : change )
  {
    this.fluids.add( is );
  }
}
origin: AppliedEnergistics/Applied-Energistics-2

@Override
public boolean isEmpty()
{
  return this.target.isEmpty();
}
origin: AppliedEnergistics/Applied-Energistics-2

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 );
  }
}
origin: AppliedEnergistics/Applied-Energistics-2

if( !this.fluids.isEmpty() )
      final IAEFluidStack send = monitorCache.findPrecise( is );
      if( send == null )
      this.fluids.resetStatus();
origin: AppliedEnergistics/Applied-Energistics-2

@Override
public T findPrecise( final T i )
{
  return this.target.findPrecise( i );
}
origin: AppliedEnergistics/Applied-Energistics-2

public ICraftingLink submitJob( final IGrid g, final ICraftingJob job, final IActionSource src, final ICraftingRequester requestingMachine )
  if( !this.tasks.isEmpty() || !this.waitingFor.isEmpty() )
    this.waitingFor.resetStatus();
    ( (CraftingJob) job ).getTree().setJob( ci, this, src );
    if( ci.commit( src ) )
      this.inventory.getItemList().resetStatus();
    this.inventory.getItemList().resetStatus();
origin: AppliedEnergistics/Applied-Energistics-2

private boolean matches( final FullnessMode fm, final IMEInventory src )
{
  if( fm == FullnessMode.HALF )
  {
    return true;
  }
  final IItemList<? extends IAEStack> myList;
  if( src instanceof IMEMonitor )
  {
    myList = ( (IMEMonitor) src ).getStorageList();
  }
  else
  {
    myList = src.getAvailableItems( src.getChannel().createList() );
  }
  if( fm == FullnessMode.EMPTY )
  {
    return myList.isEmpty();
  }
  final IAEStack test = myList.getFirstItem();
  if( test != null )
  {
    test.setStackSize( 1 );
    return src.injectItems( test, Actionable.SIMULATE, this.mySrc ) != null;
  }
  return false;
}
origin: AppliedEnergistics/Applied-Energistics-2

    if( configItem != null )
      priorityList.add( configItem );
if( !priorityList.isEmpty() )
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
}
origin: AppliedEnergistics/Applied-Energistics-2

this.list.resetStatus();
int high = 0;
boolean changed = false;
      this.list.add( cis.aeStack );
      this.list.add( stack );
origin: AppliedEnergistics/Applied-Energistics-2

  @Override
  public void resetStatus()
  {
    this.target.resetStatus();
  }
}
origin: AppliedEnergistics/Applied-Energistics-2

this.storedItems = (short) this.cellItems.size();
if( this.cellItems.isEmpty() )
origin: AppliedEnergistics/Applied-Energistics-2

@Override
public int size()
{
  return this.target.size();
}
origin: AppliedEnergistics/Applied-Energistics-2

void getPlan( final IItemList<IAEItemStack> plan )
{
  if( this.missing > 0 )
  {
    final IAEItemStack o = this.what.copy();
    o.setStackSize( this.missing );
    plan.add( o );
  }
  if( this.howManyEmitted > 0 )
  {
    final IAEItemStack i = this.what.copy();
    i.setCountRequestable( this.howManyEmitted );
    plan.addRequestable( i );
  }
  for( final IAEItemStack i : this.used )
  {
    plan.add( i.copy() );
  }
  for( final CraftingTreeProcess pro : this.nodes )
  {
    pro.getPlan( plan );
  }
}
origin: AppliedEnergistics/Applied-Energistics-2

final Collection<IAEItemStack> fuzzyList = monitor.getStorageList().findFuzzy( myStack, fzMode );
for( final IAEItemStack st : fuzzyList )
final IAEItemStack r = monitor.getStorageList().findPrecise( myStack );
if( r == null )
origin: Nividica/ThaumicEnergistics

public void updateView() {
  this.view.clear();
  this.view.ensureCapacity(this.list.size());
  final boolean searchByAspect = sba;
  Stream<T> stream = StreamSupport.stream(this.list.spliterator(), false);
origin: AppliedEnergistics/Applied-Energistics-2

@Override
public T getFirstItem()
{
  return this.target.getFirstItem();
}
origin: Nividica/ThaumicEnergistics

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

if( !this.items.isEmpty() )
      final IAEItemStack send = monitorCache.findPrecise( is );
      if( send == null )
      this.items.resetStatus();
origin: AppliedEnergistics/Applied-Energistics-2

@Override
public boolean isPrioritized( final IAEItemStack input )
{
  return this.itemListCache.findPrecise( input ) != null;
}
appeng.api.storage.dataIItemList

Most used methods

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

Popular in Java

  • Updating database using SQL prepared statement
  • startActivity (Activity)
  • onCreateOptionsMenu (Activity)
  • findViewById (Activity)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • JList (javax.swing)
  • JPanel (javax.swing)
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Github Copilot alternatives
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