Class LevitationTrigger.Instance
- java.lang.Object
-
- net.minecraft.advancements.criterion.CriterionInstance
-
- net.minecraft.advancements.criterion.LevitationTrigger.Instance
-
- All Implemented Interfaces:
ICriterionInstance
- Enclosing class:
- LevitationTrigger
public static class LevitationTrigger.Instance extends CriterionInstance
-
-
Field Summary
Fields Modifier and Type Field Description private DistancePredicate
distance
private MinMaxBounds.IntBound
duration
-
Constructor Summary
Constructors Constructor Description Instance(EntityPredicate.AndPredicate p_i231638_1_, DistancePredicate p_i231638_2_, MinMaxBounds.IntBound p_i231638_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
distance
private final DistancePredicate distance
-
duration
private final MinMaxBounds.IntBound duration
-
-
Constructor Detail
-
Instance
public Instance(EntityPredicate.AndPredicate p_i231638_1_, DistancePredicate p_i231638_2_, MinMaxBounds.IntBound p_i231638_3_)
-
-
Method Detail
-
levitated
public static LevitationTrigger.Instance levitated(DistancePredicate p_203930_0_)
-
matches
public boolean matches(ServerPlayerEntity p_193201_1_, Vector3d p_193201_2_, int p_193201_3_)
-
serializeToJson
public com.google.gson.JsonObject serializeToJson(ConditionArraySerializer p_230240_1_)
- Specified by:
serializeToJson
in interfaceICriterionInstance
- Overrides:
serializeToJson
in classCriterionInstance
-
-