public class RecipeInput
extends java.lang.Object
| Constructor and Description |
|---|
RecipeInput(net.minecraft.item.crafting.Ingredient input) |
RecipeInput(net.minecraft.item.crafting.Ingredient input,
double chance) |
RecipeInput(net.minecraft.item.crafting.Ingredient input,
double chance,
int damage) |
RecipeInput(net.minecraft.item.crafting.Ingredient input,
int damage) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
beConsumed() |
boolean |
compare(net.minecraft.item.ItemStack stack,
double damageMultiplier)
Compares the input with the given stack.
|
void |
consume(net.minecraft.item.ItemStack stack,
double damageMultiplier)
Consumes the item stack if the chance is met.
|
int |
getAmount() |
double |
getChance() |
int |
getDamage() |
net.minecraft.item.crafting.Ingredient |
getIngredient() |
boolean |
isDamageable() |
public RecipeInput(net.minecraft.item.crafting.Ingredient input,
double chance,
int damage)
public RecipeInput(net.minecraft.item.crafting.Ingredient input,
double chance)
public RecipeInput(net.minecraft.item.crafting.Ingredient input,
int damage)
public RecipeInput(net.minecraft.item.crafting.Ingredient input)
public net.minecraft.item.crafting.Ingredient getIngredient()
public double getChance()
public int getDamage()
public int getAmount()
public boolean isDamageable()
public boolean beConsumed()
public void consume(net.minecraft.item.ItemStack stack,
double damageMultiplier)
stack - the stack to consumedamageMultiplier - trigger-depended multiplier for item damagepublic boolean compare(net.minecraft.item.ItemStack stack,
double damageMultiplier)
stack - the stack to compare withdamageMultiplier - trigger-depended multiplier for item damage