Package emi.dev.emi.emi.bom
Class TreeCost
java.lang.Object
emi.dev.emi.emi.bom.TreeCost
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcalculate(MaterialNode node, long batches) voidcalculateProgress(MaterialNode node, long batches, EmiPlayerInventory inventory) longgcd(long a, long b) longgetIdealBatch(MaterialNode node, long total, long amount) static booleanisCatalyst(EmiIngredient ing)
-
Field Details
-
costs
-
chanceCosts
-
remainders
-
chanceRemainders
-
-
Constructor Details
-
TreeCost
public TreeCost()
-
-
Method Details
-
calculate
-
calculateProgress
-
isCatalyst
-
getIdealBatch
-
gcd
public long gcd(long a, long b)
-