public static class NetherTravelTrigger.Instance extends CriterionInstance
Modifier and Type | Field and Description |
---|---|
private DistancePredicate |
distance |
private LocationPredicate |
entered |
private LocationPredicate |
exited |
Constructor and Description |
---|
Instance(LocationPredicate enteredIn,
LocationPredicate exitedIn,
DistancePredicate distanceIn) |
Modifier and Type | Method and Description |
---|---|
static NetherTravelTrigger.Instance |
forDistance(DistancePredicate p_203933_0_) |
com.google.gson.JsonElement |
serialize() |
boolean |
test(ServerWorld world,
Vec3d enteredNetherPosition,
double x,
double y,
double z) |
getId, toString
private final LocationPredicate entered
private final LocationPredicate exited
private final DistancePredicate distance
public Instance(LocationPredicate enteredIn, LocationPredicate exitedIn, DistancePredicate distanceIn)
public static NetherTravelTrigger.Instance forDistance(DistancePredicate p_203933_0_)
public boolean test(ServerWorld world, Vec3d enteredNetherPosition, double x, double y, double z)
public com.google.gson.JsonElement serialize()