public static class ConsumeItemTrigger.Instance extends CriterionInstance
Modifier and Type | Field and Description |
---|---|
private ItemPredicate |
item |
Constructor and Description |
---|
Instance(ItemPredicate item) |
Modifier and Type | Method and Description |
---|---|
static ConsumeItemTrigger.Instance |
any() |
static ConsumeItemTrigger.Instance |
forItem(IItemProvider p_203913_0_) |
com.google.gson.JsonElement |
serialize() |
boolean |
test(ItemStack item) |
getId, toString
private final ItemPredicate item
public Instance(ItemPredicate item)
public static ConsumeItemTrigger.Instance any()
public static ConsumeItemTrigger.Instance forItem(IItemProvider p_203913_0_)
public boolean test(ItemStack item)
public com.google.gson.JsonElement serialize()