Package emi.dev.emi.emi.api.stack
Class TagEmiIngredient
java.lang.Object
emi.dev.emi.emi.api.stack.TagEmiIngredient
- All Implemented Interfaces:
EmiRenderable,EmiIngredient
-
Field Summary
FieldsFields inherited from interface emi.dev.emi.emi.api.stack.EmiIngredient
RENDER_AMOUNT, RENDER_ICON, RENDER_INGREDIENT, RENDER_REMAINDER -
Constructor Summary
ConstructorsConstructorDescriptionTagEmiIngredient(TagKey<?> key, long amount) TagEmiIngredient(TagKey<?> key, List<EmiStack> stacks, long amount) -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface emi.dev.emi.emi.api.stack.EmiIngredient
isEmpty, render
-
Field Details
-
key
-
-
Constructor Details
-
TagEmiIngredient
-
TagEmiIngredient
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
copy
- Specified by:
copyin interfaceEmiIngredient
-
getEmiStacks
- Specified by:
getEmiStacksin interfaceEmiIngredient- Returns:
- The
EmiStacks represented by this ingredient. List is never empty. For an empty ingredient, usEmiStack.EMPTY
-
getAmount
public long getAmount()- Specified by:
getAmountin interfaceEmiIngredient
-
setAmount
- Specified by:
setAmountin interfaceEmiIngredient
-
getChance
public float getChance()- Specified by:
getChancein interfaceEmiIngredient
-
setChance
- Specified by:
setChancein interfaceEmiIngredient
-
render
- Specified by:
renderin interfaceEmiIngredient
-
getTooltip
- Specified by:
getTooltipin interfaceEmiIngredient
-