public void removeFuelPattern(SetFuelPattern pattern) { for (IItemStack item : pattern.getPattern().getItems()) { if (!quickList.containsKey(item.getName())) { quickList.put(item.getName(), new ArrayList<SetFuelPattern>()); } quickList.get(item.getName()).add(pattern); } }
public void addFuelPattern(SetFuelPattern pattern) { List<IItemStack> items = pattern.getPattern().getItems(); if (items == null) { MineTweakerAPI.logError("Cannot set fuel for <*>"); return; } for (IItemStack item : pattern.getPattern().getItems()) { if (!quickList.containsKey(item.getName())) { quickList.put(item.getName(), new ArrayList<SetFuelPattern>()); } quickList.get(item.getName()).add(pattern); } }
@Override public void remove(IItemStack item) { ItemStack result = null; for (ItemStack itemStack : OreDictionary.getOres(id)) { if (item.matches(getIItemStackWildcardSize(itemStack))) { result = itemStack; break; } } if (result != null) { MineTweakerAPI.apply(new ActionRemoveItem(id, result)); } }
@Override public String describe() { return "Adding slicing of " + input.getDisplayName() + " into " + output.getDisplayName(); }