Class DistanceTrigger.TriggerInstance
java.lang.Object
net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
net.minecraft.advancements.critereon.DistanceTrigger.TriggerInstance
- All Implemented Interfaces:
SimpleCriterionTrigger.SimpleInstance
,CriterionTriggerInstance
- Enclosing class:
- DistanceTrigger
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Optional<DistancePredicate>
private final Optional<LocationPredicate>
-
Constructor Summary
ConstructorDescriptionTriggerInstance
(Optional<ContextAwarePredicate> p_299242_, Optional<LocationPredicate> p_300746_, Optional<DistancePredicate> p_300813_) -
Method Summary
Modifier and TypeMethodDescriptionfallFromHeight
(EntityPredicate.Builder p_186198_, DistancePredicate p_186199_, LocationPredicate.Builder p_300400_) boolean
matches
(ServerLevel p_186189_, Vec3 p_186190_, Vec3 p_186191_) rideEntityInLava
(EntityPredicate.Builder p_186195_, DistancePredicate p_186196_) com.google.gson.JsonObject
travelledThroughNether
(DistancePredicate p_186193_) Methods inherited from class net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
playerPredicate
-
Field Details
-
startPosition
-
distance
-
-
Constructor Details
-
TriggerInstance
public TriggerInstance(Optional<ContextAwarePredicate> p_299242_, Optional<LocationPredicate> p_300746_, Optional<DistancePredicate> p_300813_)
-
-
Method Details
-
fallFromHeight
public static Criterion<DistanceTrigger.TriggerInstance> fallFromHeight(EntityPredicate.Builder p_186198_, DistancePredicate p_186199_, LocationPredicate.Builder p_300400_) -
rideEntityInLava
public static Criterion<DistanceTrigger.TriggerInstance> rideEntityInLava(EntityPredicate.Builder p_186195_, DistancePredicate p_186196_) -
travelledThroughNether
public static Criterion<DistanceTrigger.TriggerInstance> travelledThroughNether(DistancePredicate p_186193_) -
serializeToJson
public com.google.gson.JsonObject serializeToJson()- Specified by:
serializeToJson
in interfaceCriterionTriggerInstance
- Overrides:
serializeToJson
in classAbstractCriterionTriggerInstance
-
matches
-