public static class KilledByCrossbowCriterion.Conditions extends AbstractCriterionConditions
Modifier and Type | Field and Description |
---|---|
private NumberRange.IntRange |
uniqueEntityTypes |
private EntityPredicate.Extended[] |
victims |
Constructor and Description |
---|
Conditions(EntityPredicate.Extended player,
EntityPredicate.Extended[] victims,
NumberRange.IntRange uniqueEntityTypes) |
Modifier and Type | Method and Description |
---|---|
static KilledByCrossbowCriterion.Conditions |
create(EntityPredicate.Builder[] victimPredicates) |
static KilledByCrossbowCriterion.Conditions |
create(NumberRange.IntRange uniqueEntityTypes) |
boolean |
matches(Collection<LootContext> victimContexts,
int uniqueEntityTypeCount) |
JsonObject |
toJson(AdvancementEntityPredicateSerializer predicateSerializer) |
getId, getPlayerPredicate, toString
private final EntityPredicate.Extended[] victims
private final NumberRange.IntRange uniqueEntityTypes
public Conditions(EntityPredicate.Extended player, EntityPredicate.Extended[] victims, NumberRange.IntRange uniqueEntityTypes)
public static KilledByCrossbowCriterion.Conditions create(EntityPredicate.Builder[] victimPredicates)
public static KilledByCrossbowCriterion.Conditions create(NumberRange.IntRange uniqueEntityTypes)
public boolean matches(Collection<LootContext> victimContexts, int uniqueEntityTypeCount)
public JsonObject toJson(AdvancementEntityPredicateSerializer predicateSerializer)
toJson
in interface CriterionConditions
toJson
in class AbstractCriterionConditions