Class NetherTravelTrigger.Instance
- java.lang.Object
-
- net.minecraft.advancements.criterion.CriterionInstance
-
- net.minecraft.advancements.criterion.NetherTravelTrigger.Instance
-
- All Implemented Interfaces:
ICriterionInstance
- Enclosing class:
- NetherTravelTrigger
public static class NetherTravelTrigger.Instance extends CriterionInstance
-
-
Field Summary
Fields Modifier and Type Field Description private DistancePredicate
distance
private LocationPredicate
entered
private LocationPredicate
exited
-
Constructor Summary
Constructors Constructor Description Instance(EntityPredicate.AndPredicate p_i231785_1_, LocationPredicate p_i231785_2_, LocationPredicate p_i231785_3_, DistancePredicate p_i231785_4_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
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 Detail
-
entered
private final LocationPredicate entered
-
exited
private final LocationPredicate exited
-
distance
private final DistancePredicate distance
-
-
Constructor Detail
-
Instance
public Instance(EntityPredicate.AndPredicate p_i231785_1_, LocationPredicate p_i231785_2_, LocationPredicate p_i231785_3_, DistancePredicate p_i231785_4_)
-
-
Method Detail
-
travelledThroughNether
public static NetherTravelTrigger.Instance travelledThroughNether(DistancePredicate p_203933_0_)
-
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
public com.google.gson.JsonObject serializeToJson(ConditionArraySerializer p_230240_1_)
- Specified by:
serializeToJson
in interfaceICriterionInstance
- Overrides:
serializeToJson
in classCriterionInstance
-
-