Class NetherTravelTrigger.Instance
java.lang.Object
net.minecraft.advancements.criterion.CriterionInstance
net.minecraft.advancements.criterion.NetherTravelTrigger.Instance
- All Implemented Interfaces:
ICriterionInstance
- Enclosing class:
- NetherTravelTrigger
-
Field Summary
Modifier and TypeFieldDescriptionprivate final DistancePredicate
private final LocationPredicate
private final LocationPredicate
-
Constructor Summary
ConstructorDescriptionInstance
(EntityPredicate.AndPredicate p_i231785_1_, LocationPredicate p_i231785_2_, LocationPredicate p_i231785_3_, DistancePredicate p_i231785_4_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
matches
(ServerWorld p_193206_1_, Vector3d p_193206_2_, double p_193206_3_, double p_193206_5_, double p_193206_7_) com.google.gson.JsonObject
serializeToJson
(ConditionArraySerializer p_230240_1_) static NetherTravelTrigger.Instance
travelledThroughNether
(DistancePredicate p_203933_0_) Methods inherited from class net.minecraft.advancements.criterion.CriterionInstance
getCriterion, getPlayerPredicate, toString
-
Field Details
-
entered
-
exited
-
distance
-
-
Constructor Details
-
Instance
public Instance(EntityPredicate.AndPredicate p_i231785_1_, LocationPredicate p_i231785_2_, LocationPredicate p_i231785_3_, DistancePredicate p_i231785_4_)
-
-
Method Details
-
travelledThroughNether
-
matches
public boolean matches(ServerWorld p_193206_1_, Vector3d p_193206_2_, double p_193206_3_, double p_193206_5_, double p_193206_7_) -
serializeToJson
- Specified by:
serializeToJson
in interfaceICriterionInstance
- Overrides:
serializeToJson
in classCriterionInstance
-