Class DistanceTrigger.TriggerInstance
java.lang.Object
net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
net.minecraft.advancements.critereon.DistanceTrigger.TriggerInstance
- All Implemented Interfaces:
CriterionTriggerInstance
- Enclosing class:
- DistanceTrigger
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTriggerInstance
(ResourceLocation p_186184_, EntityPredicate.Composite p_186185_, LocationPredicate p_186186_, DistancePredicate p_186187_) -
Method Summary
Modifier and TypeMethodDescriptionfallFromHeight
(EntityPredicate.Builder p_186198_, DistancePredicate p_186199_, LocationPredicate p_186200_) boolean
matches
(ServerLevel p_186189_, Vec3 p_186190_, Vec3 p_186191_) rideEntityInLava
(EntityPredicate.Builder p_186195_, DistancePredicate p_186196_) com.google.gson.JsonObject
serializeToJson
(SerializationContext p_186202_) travelledThroughNether
(DistancePredicate p_186193_) Methods inherited from class net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
getCriterion, getPlayerPredicate, toString
-
Field Details
-
startPosition
-
distance
-
-
Constructor Details
-
TriggerInstance
public TriggerInstance(ResourceLocation p_186184_, EntityPredicate.Composite p_186185_, LocationPredicate p_186186_, DistancePredicate p_186187_)
-
-
Method Details
-
fallFromHeight
public static DistanceTrigger.TriggerInstance fallFromHeight(EntityPredicate.Builder p_186198_, DistancePredicate p_186199_, LocationPredicate p_186200_) -
rideEntityInLava
public static DistanceTrigger.TriggerInstance rideEntityInLava(EntityPredicate.Builder p_186195_, DistancePredicate p_186196_) -
travelledThroughNether
-
serializeToJson
- Specified by:
serializeToJson
in interfaceCriterionTriggerInstance
- Overrides:
serializeToJson
in classAbstractCriterionTriggerInstance
-
matches
-