public static class LevitationTrigger.Instance extends CriterionInstance
Modifier and Type | Field and Description |
---|---|
private DistancePredicate |
distance |
private MinMaxBounds.IntBound |
duration |
Constructor and Description |
---|
Instance(DistancePredicate p_i49729_1_,
MinMaxBounds.IntBound p_i49729_2_) |
Modifier and Type | Method and Description |
---|---|
static LevitationTrigger.Instance |
forDistance(DistancePredicate p_203930_0_) |
com.google.gson.JsonElement |
serialize() |
boolean |
test(ServerPlayerEntity player,
Vec3d startPos,
int durationIn) |
getId, toString
private final DistancePredicate distance
private final MinMaxBounds.IntBound duration
public Instance(DistancePredicate p_i49729_1_, MinMaxBounds.IntBound p_i49729_2_)
public static LevitationTrigger.Instance forDistance(DistancePredicate p_203930_0_)
public boolean test(ServerPlayerEntity player, Vec3d startPos, int durationIn)
public com.google.gson.JsonElement serialize()