Class NetherTravelTrigger.TriggerInstance
java.lang.Object
net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
net.minecraft.advancements.critereon.NetherTravelTrigger.TriggerInstance
- All Implemented Interfaces:
CriterionTriggerInstance
- Enclosing class:
- NetherTravelTrigger
-
Field Summary
Modifier and TypeFieldDescriptionprivate DistancePredicate
private LocationPredicate
private LocationPredicate
-
Constructor Summary
ConstructorDescriptionTriggerInstance(EntityPredicate.Composite p_58459_, LocationPredicate p_58460_, LocationPredicate p_58461_, DistancePredicate p_58462_)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
matches(ServerLevel p_58464_, Vec3 p_58465_, double p_58466_, double p_58467_, double p_58468_)
com.google.gson.JsonObject
serializeToJson(SerializationContext p_58472_)
travelledThroughNether(DistancePredicate p_58470_)
Methods inherited from class net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
getCriterion, getPlayerPredicate, toString
-
Field Details
-
entered
-
exited
-
distance
-
-
Constructor Details
-
TriggerInstance
public TriggerInstance(EntityPredicate.Composite p_58459_, LocationPredicate p_58460_, LocationPredicate p_58461_, DistancePredicate p_58462_)
-
-
Method Details
-
travelledThroughNether
public static NetherTravelTrigger.TriggerInstance travelledThroughNether(DistancePredicate p_58470_) -
matches
public boolean matches(ServerLevel p_58464_, Vec3 p_58465_, double p_58466_, double p_58467_, double p_58468_) -
serializeToJson
- Specified by:
serializeToJson
in interfaceCriterionTriggerInstance
- Overrides:
serializeToJson
in classAbstractCriterionTriggerInstance
-