public static class TargetHitCriterion.Conditions extends AbstractCriterionConditions
Modifier and Type | Field and Description |
---|---|
private EntityPredicate.Extended |
projectile |
private NumberRange.IntRange |
signalStrength |
Constructor and Description |
---|
Conditions(EntityPredicate.Extended player,
NumberRange.IntRange signalStrength,
EntityPredicate.Extended projectile) |
Modifier and Type | Method and Description |
---|---|
static TargetHitCriterion.Conditions |
create(NumberRange.IntRange signalStrength,
EntityPredicate.Extended extended) |
boolean |
test(LootContext projectileContext,
Vec3d hitPos,
int signalStrength) |
JsonObject |
toJson(AdvancementEntityPredicateSerializer predicateSerializer) |
getId, getPlayerPredicate, toString
private final NumberRange.IntRange signalStrength
private final EntityPredicate.Extended projectile
public Conditions(EntityPredicate.Extended player, NumberRange.IntRange signalStrength, EntityPredicate.Extended projectile)
public static TargetHitCriterion.Conditions create(NumberRange.IntRange signalStrength, EntityPredicate.Extended extended)
public JsonObject toJson(AdvancementEntityPredicateSerializer predicateSerializer)
toJson
in interface CriterionConditions
toJson
in class AbstractCriterionConditions
public boolean test(LootContext projectileContext, Vec3d hitPos, int signalStrength)