Пример #1
0
 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);
   }
 }
Пример #2
0
  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);
    }
  }
Пример #3
0
  @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));
    }
  }
Пример #4
0
 @Override
 public String describe() {
   return "Adding slicing of " + input.getDisplayName() + " into " + output.getDisplayName();
 }