public static class BeeNestDestroyedCriterion.Conditions extends AbstractCriterionConditions
Modifier and Type | Field and Description |
---|---|
private NumberRange.IntRange |
beeCount |
private Block |
block |
private ItemPredicate |
item |
Constructor and Description |
---|
Conditions(EntityPredicate.Extended player,
Block block,
ItemPredicate item,
NumberRange.IntRange beeCount) |
Modifier and Type | Method and Description |
---|---|
static BeeNestDestroyedCriterion.Conditions |
create(Block block,
ItemPredicate.Builder itemPredicateBuilder,
NumberRange.IntRange beeCountRange) |
boolean |
test(Block block,
ItemStack stack,
int count) |
JsonObject |
toJson(AdvancementEntityPredicateSerializer predicateSerializer) |
getId, getPlayerPredicate, toString
private final ItemPredicate item
private final NumberRange.IntRange beeCount
public Conditions(EntityPredicate.Extended player, @Nullable Block block, ItemPredicate item, NumberRange.IntRange beeCount)
public static BeeNestDestroyedCriterion.Conditions create(Block block, ItemPredicate.Builder itemPredicateBuilder, NumberRange.IntRange beeCountRange)
public JsonObject toJson(AdvancementEntityPredicateSerializer predicateSerializer)
toJson
in interface CriterionConditions
toJson
in class AbstractCriterionConditions