@Override public void resetStatus() { this.target.resetStatus(); } }
public void clear() { this.list.resetStatus(); }
public void clear() { this.list.resetStatus(); }
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(); } }
@Nonnull @Override public IItemList<T> getStorageList() { if( this.hasChanged ) { this.hasChanged = false; this.cachedList.resetStatus(); return this.getAvailableItems( this.cachedList ); } return this.cachedList; }
@Override public IItemList<T> getStorageList() { if( this.hasChanged ) { this.hasChanged = false; this.cachedList.resetStatus(); return this.getAvailableItems( this.cachedList ); } return this.cachedList; }
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 ); } }
this.list.resetStatus(); int high = 0; boolean changed = false;
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 }
public void clear() { this.list.resetStatus(); }
this.list.resetStatus(); int high = 0; boolean changed = false;
this.waitingFor.resetStatus(); ( (CraftingJob) job ).getTree().setJob( ci, this, src ); if( ci.commit( src ) ) this.inventory.getItemList().resetStatus(); this.inventory.getItemList().resetStatus();
this.list.resetStatus(); this.getMonitor().getListOfItem( this.list, CraftingItemList.ALL ); this.getMonitor().addListener( this, null );
this.fluids.resetStatus();
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); } }