public class IngredientTransform
extends java.lang.Object
Constructor and Description |
---|
IngredientTransform() |
Modifier and Type | Method and Description |
---|---|
static IIngredient |
giveBack(IIngredient ingredient,
IItemStack givenItem)
Gives an item back to the player.
|
static IIngredient |
noReturn(IIngredient ingredient)
Makes sure there is no return value.
|
static IIngredient |
reuse(IIngredient ingredient)
Leaves the item in the crafting grid.
|
static IIngredient |
transformConsume(IIngredient ingredient,
int amount)
Causes multiple items to be consumed.
|
static IIngredient |
transformDamage(IIngredient ingredient)
Damages the item.
|
static IIngredient |
transformDamage(IIngredient ingredient,
int damage)
Damages the item for a specific amount.
|
static IIngredient |
transformReplace(IIngredient ingredient,
IItemStack withItem)
Causes the item to be replaced upon crafting.
|
public static IIngredient transformDamage(IIngredient ingredient)
ingredient
- target valuepublic static IIngredient transformDamage(IIngredient ingredient, int damage)
ingredient
- target valuedamage
- damage to be appliedpublic static IIngredient transformReplace(IIngredient ingredient, IItemStack withItem)
ingredient
- target valuewithItem
- replacement itempublic static IIngredient transformConsume(IIngredient ingredient, int amount)
ingredient
- target valueamount
- consumption amountpublic static IIngredient noReturn(IIngredient ingredient)
ingredient
- public static IIngredient giveBack(IIngredient ingredient, IItemStack givenItem)
ingredient
- givenItem
- public static IIngredient reuse(IIngredient ingredient)
ingredient
-