Package emi.dev.emi.emi.runtime
Class EmiFavorite
java.lang.Object
emi.dev.emi.emi.runtime.EmiFavorite
- All Implemented Interfaces:
EmiRenderable,EmiIngredient,StackBatcher.Batchable
- Direct Known Subclasses:
EmiFavorite.Craftable,EmiFavorite.Synthetic
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final @Nullable EmiRecipeprotected final EmiIngredientFields inherited from interface emi.dev.emi.emi.api.stack.EmiIngredient
RENDER_AMOUNT, RENDER_ICON, RENDER_INGREDIENT, RENDER_REMAINDER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()booleanlongfloatgetStack()booleanbooleanvoidrender(DrawContext raw, int x, int y, float delta, int flags) voidrenderForBatch(DrawContext raw, int x, int y, int z, float delta) setAmount(long amount) setChance(float chance) voidbooleanstrictEquals(EmiIngredient other) Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface emi.dev.emi.emi.api.stack.EmiIngredient
isEmpty, render
-
Field Details
-
stack
-
recipe
-
-
Constructor Details
-
EmiFavorite
-
-
Method Details
-
getStack
-
copy
- Specified by:
copyin interfaceEmiIngredient
-
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
-
getRecipe
-
getEmiStacks
- Specified by:
getEmiStacksin interfaceEmiIngredient- Returns:
- The
EmiStacks represented by this ingredient. List is never empty. For an empty ingredient, usEmiStack.EMPTY
-
render
- Specified by:
renderin interfaceEmiIngredient
-
getTooltip
- Specified by:
getTooltipin interfaceEmiIngredient
-
strictEquals
-
equals
-
isSideLit
public boolean isSideLit()- Specified by:
isSideLitin interfaceStackBatcher.Batchable
-
isUnbatchable
public boolean isUnbatchable()- Specified by:
isUnbatchablein interfaceStackBatcher.Batchable
-
setUnbatchable
public void setUnbatchable()- Specified by:
setUnbatchablein interfaceStackBatcher.Batchable
-
renderForBatch
- Specified by:
renderForBatchin interfaceStackBatcher.Batchable
-