Search in sources :

Example 1 with ZenGetter

use of stanhebben.zenscript.annotations.ZenGetter in project GregTech by GregTechCE.

the class CTRecipe method getChancedOutputs.

@ZenGetter("changedOutputs")
public List<ChancedEntry> getChancedOutputs() {
    ArrayList<ChancedEntry> result = new ArrayList<>();
    this.backingRecipe.getChancedOutputs().forEach(chanceEntry -> result.add(new ChancedEntry(new MCItemStack(chanceEntry.getItemStack()), chanceEntry.getChance(), chanceEntry.getBoostPerTier())));
    return result;
}
Also used : MCItemStack(crafttweaker.mc1120.item.MCItemStack) ArrayList(java.util.ArrayList) ZenGetter(stanhebben.zenscript.annotations.ZenGetter)

Aggregations

MCItemStack (crafttweaker.mc1120.item.MCItemStack)1 ArrayList (java.util.ArrayList)1 ZenGetter (stanhebben.zenscript.annotations.ZenGetter)1