Class LevitationTrigger.TriggerInstance
java.lang.Object
net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
net.minecraft.advancements.critereon.LevitationTrigger.TriggerInstance
- All Implemented Interfaces:
SimpleCriterionTrigger.SimpleInstance
,CriterionTriggerInstance
- Enclosing class:
LevitationTrigger
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Optional<DistancePredicate>
private final MinMaxBounds.Ints
-
Constructor Summary
ConstructorDescriptionTriggerInstance
(Optional<ContextAwarePredicate> p_299278_, Optional<DistancePredicate> p_299004_, MinMaxBounds.Ints p_286676_) -
Method Summary
Modifier and TypeMethodDescriptionlevitated
(DistancePredicate p_49145_) boolean
matches
(ServerPlayer p_49141_, Vec3 p_49142_, int p_49143_) com.google.gson.JsonObject
Methods inherited from class net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
playerPredicate
-
Field Details
-
distance
-
duration
-
-
Constructor Details
-
TriggerInstance
public TriggerInstance(Optional<ContextAwarePredicate> p_299278_, Optional<DistancePredicate> p_299004_, MinMaxBounds.Ints p_286676_)
-
-
Method Details
-
levitated
-
matches
-
serializeToJson
public com.google.gson.JsonObject serializeToJson()- Specified by:
serializeToJson
in interfaceCriterionTriggerInstance
- Overrides:
serializeToJson
in classAbstractCriterionTriggerInstance
-