Class LevitationTrigger.Instance
java.lang.Object
net.minecraft.advancements.criterion.CriterionInstance
net.minecraft.advancements.criterion.LevitationTrigger.Instance
- All Implemented Interfaces:
ICriterionInstance
- Enclosing class:
- LevitationTrigger
-
Field Summary
Modifier and TypeFieldDescriptionprivate final DistancePredicate
private final MinMaxBounds.IntBound
-
Constructor Summary
ConstructorDescriptionInstance
(EntityPredicate.AndPredicate p_i231638_1_, DistancePredicate p_i231638_2_, MinMaxBounds.IntBound p_i231638_3_) -
Method Summary
Modifier and TypeMethodDescriptionstatic LevitationTrigger.Instance
levitated
(DistancePredicate p_203930_0_) boolean
matches
(ServerPlayerEntity p_193201_1_, Vector3d p_193201_2_, int p_193201_3_) com.google.gson.JsonObject
serializeToJson
(ConditionArraySerializer p_230240_1_) Methods inherited from class net.minecraft.advancements.criterion.CriterionInstance
getCriterion, getPlayerPredicate, toString
-
Field Details
-
distance
-
duration
-
-
Constructor Details
-
Instance
public Instance(EntityPredicate.AndPredicate p_i231638_1_, DistancePredicate p_i231638_2_, MinMaxBounds.IntBound p_i231638_3_)
-
-
Method Details
-
levitated
-
matches
-
serializeToJson
- Specified by:
serializeToJson
in interfaceICriterionInstance
- Overrides:
serializeToJson
in classCriterionInstance
-