Class LevitationTrigger.TriggerInstance
java.lang.Object
net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
net.minecraft.advancements.critereon.LevitationTrigger.TriggerInstance
- All Implemented Interfaces:
CriterionTriggerInstance
- Enclosing class:
- LevitationTrigger
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTriggerInstance(EntityPredicate.Composite p_49137_, DistancePredicate p_49138_, MinMaxBounds.Ints p_49139_)
-
Method Summary
Modifier and TypeMethodDescriptionlevitated(DistancePredicate p_49145_)
boolean
matches(ServerPlayer p_49141_, Vec3 p_49142_, int p_49143_)
com.google.gson.JsonObject
serializeToJson(SerializationContext p_49147_)
Methods inherited from class net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
getCriterion, getPlayerPredicate, toString
-
Field Details
-
distance
-
duration
-
-
Constructor Details
-
TriggerInstance
public TriggerInstance(EntityPredicate.Composite p_49137_, DistancePredicate p_49138_, MinMaxBounds.Ints p_49139_)
-
-
Method Details
-
levitated
-
matches
-
serializeToJson
- Specified by:
serializeToJson
in interfaceCriterionTriggerInstance
- Overrides:
serializeToJson
in classAbstractCriterionTriggerInstance
-