public class IngredientCondition
extends java.lang.Object
Constructor and Description |
---|
IngredientCondition() |
Modifier and Type | Method and Description |
---|---|
static IIngredient |
onlyDamageAtLeast(IIngredient ingredient,
int minDamage)
Requires the item to be damaged with at least a specified amount.
|
static IIngredient |
onlyDamageAtMost(IIngredient ingredient,
int maxDamage)
Requires the item to be damaged with at most a specified amount.
|
static IIngredient |
onlyDamageBetween(IIngredient ingredient,
int minDamage,
int maxDamage)
Requires the item damage value to be between two values.
|
static IIngredient |
onlyDamaged(IIngredient ingredient)
Requires the item to be damaged.
|
static IIngredient |
onlyStack(IIngredient ingredient,
int amount)
Requires the input stack to contain at least the given number of items.
|
static IIngredient |
onlyWithTag(IIngredient ingredient,
IData data)
Requires the item to contain at least the given tags.
|
public static IIngredient onlyDamaged(IIngredient ingredient)
ingredient
- target valuepublic static IIngredient onlyDamageAtLeast(IIngredient ingredient, int minDamage)
ingredient
- target valueminDamage
- minimum damagepublic static IIngredient onlyDamageAtMost(IIngredient ingredient, int maxDamage)
ingredient
- target valuemaxDamage
- maximum damagepublic static IIngredient onlyDamageBetween(IIngredient ingredient, int minDamage, int maxDamage)
ingredient
- target valueminDamage
- minimum damagemaxDamage
- maximum damagepublic static IIngredient onlyWithTag(IIngredient ingredient, IData data)
ingredient
- target valuedata
- required datapublic static IIngredient onlyStack(IIngredient ingredient, int amount)
ingredient
- target valueamount
- required stack size