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

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

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

origin: AppliedEnergistics/Applied-Energistics-2

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

public void clear()
{
  this.list.resetStatus();
}
origin: AppliedEnergistics/Applied-Energistics-2

public void clear()
{
  this.list.resetStatus();
}
origin: AppliedEnergistics/Applied-Energistics-2

void setSimulate()
{
  this.sim = true;
  this.missing = 0;
  this.bytes = 0;
  this.used.resetStatus();
  this.exhausted = false;
  for( final CraftingTreeProcess pro : this.nodes )
  {
    pro.setSimulate();
  }
}
origin: AppliedEnergistics/Applied-Energistics-2

@Nonnull
@Override
public IItemList<T> getStorageList()
{
  if( this.hasChanged )
  {
    this.hasChanged = false;
    this.cachedList.resetStatus();
    return this.getAvailableItems( this.cachedList );
  }
  return this.cachedList;
}
origin: AppliedEnergistics/Applied-Energistics-2

@Override
public IItemList<T> getStorageList()
{
  if( this.hasChanged )
  {
    this.hasChanged = false;
    this.cachedList.resetStatus();
    return this.getAvailableItems( this.cachedList );
  }
  return this.cachedList;
}
origin: AppliedEnergistics/Applied-Energistics-2

private void loadCellItems()
{
  if( this.cellItems == null )
  {
    this.cellItems = this.getChannel().createList();
  }
  this.cellItems.resetStatus(); // clears totals and stuff.
  final int types = (int) this.getStoredItemTypes();
  for( int slot = 0; slot < types; slot++ )
  {
    NBTTagCompound compoundTag = this.tagCompound.getCompoundTag( ITEM_SLOT_KEYS[slot] );
    int stackSize = this.tagCompound.getInteger( ITEM_SLOT_COUNT_KEYS[slot] );
    this.loadCellItem( compoundTag, stackSize );
  }
}
origin: AppliedEnergistics/Applied-Energistics-2

this.list.resetStatus();
int high = 0;
boolean changed = false;
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: Nividica/ThaumicEnergistics

public void clear() {
  this.list.resetStatus();
}
origin: AppliedEnergistics/Applied-Energistics-2

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

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

this.list.resetStatus();
this.getMonitor().getListOfItem( this.list, CraftingItemList.ALL );
this.getMonitor().addListener( this, null );
origin: AppliedEnergistics/Applied-Energistics-2

this.fluids.resetStatus();
origin: AppliedEnergistics/Applied-Energistics-2

this.list.resetStatus();
origin: AppliedEnergistics/Applied-Energistics-2

this.items.resetStatus();
origin: p455w0rd/WirelessCraftingTerminal

protected void setCPU(final ICraftingCPU c) {
  if (c == getMonitor()) {
    return;
  }
  if (getMonitor() != null) {
    getMonitor().removeListener(this);
  }
  for (final Object g : listeners) {
    if (g instanceof EntityPlayer) {
      try {
        ModNetworking.instance().sendTo(new PacketValueConfig("CraftingStatus", "Clear"), (EntityPlayerMP) g);
      }
      catch (final IOException e) {
      }
    }
  }
  if (c instanceof CraftingCPUCluster) {
    cpuName = c.getName();
    setMonitor((CraftingCPUCluster) c);
    list.resetStatus();
    getMonitor().getListOfItem(list, CraftingItemList.ALL);
    getMonitor().addListener(this, null);
    setEstimatedTime(0);
  }
  else {
    setMonitor(null);
    cpuName = "";
    setEstimatedTime(-1);
  }
}
origin: p455w0rd/WirelessCraftingTerminal

list.resetStatus();
origin: p455w0rd/WirelessCraftingTerminal

items.resetStatus();
appeng.api.storage.dataIItemListresetStatus

Popular methods of IItemList

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

Popular in Java

  • Reactive rest calls using spring rest template
  • getSystemService (Context)
  • getApplicationContext (Context)
  • runOnUiThread (Activity)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JCheckBox (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top Vim plugins
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