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(BlockState blockState,
ItemStack stack,
int count) |
JsonObject |
toJson(AdvancementEntityPredicateSerializer predicateSerializer) |
getId, getPlayerPredicate, toStringprivate 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 boolean test(BlockState blockState, ItemStack stack, int count)
public JsonObject toJson(AdvancementEntityPredicateSerializer predicateSerializer)
toJson in interface CriterionConditionstoJson in class AbstractCriterionConditions