public class LocationArrivalCriterion extends AbstractCriterion<LocationArrivalCriterion.Conditions>
Modifier and Type | Class and Description |
---|---|
static class |
LocationArrivalCriterion.Conditions |
Criterion.ConditionsContainer<T extends CriterionConditions>
Modifier and Type | Field and Description |
---|---|
private Identifier |
id |
Constructor and Description |
---|
LocationArrivalCriterion(Identifier id) |
Modifier and Type | Method and Description |
---|---|
LocationArrivalCriterion.Conditions |
conditionsFromJson(JsonObject jsonObject,
EntityPredicate.Extended extended,
AdvancementEntityPredicateDeserializer advancementEntityPredicateDeserializer) |
Identifier |
getId() |
void |
trigger(ServerPlayerEntity player) |
beginTrackingCondition, conditionsFromJson, endTracking, endTrackingCondition, test
private final Identifier id
public LocationArrivalCriterion(Identifier id)
public Identifier getId()
public LocationArrivalCriterion.Conditions conditionsFromJson(JsonObject jsonObject, EntityPredicate.Extended extended, AdvancementEntityPredicateDeserializer advancementEntityPredicateDeserializer)
conditionsFromJson
in class AbstractCriterion<LocationArrivalCriterion.Conditions>
public void trigger(ServerPlayerEntity player)