use of appeng.api.networking.storage.IStackWatcher in project PneumaticCraft by MineMaarten.
the class SemiBlockRequester method updateProvidingItems.
@Optional.Method(modid = ModIds.AE2)
private void updateProvidingItems(ICraftingProviderHelper cHelper) {
IStackWatcher sWatcher = (IStackWatcher) stackWatcher;
ICraftingWatcher cWatcher = (ICraftingWatcher) craftingWatcher;
if (sWatcher != null)
sWatcher.clear();
if (cWatcher != null)
cWatcher.clear();
for (IAEItemStack stack : getProvidingItems()) {
if (sWatcher != null)
sWatcher.add(stack);
if (cWatcher != null)
cWatcher.add(stack);
if (cHelper != null)
cHelper.setEmitable(stack);
}
}
Aggregations