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