public final class ResetMovedPlayerEvent extends Event
AbstractPlayerEntity in question having moved farther than they
should be able to. If this event is not cancelled, the player will be reset
to the last calculated coordinates if the moved distance is greater than the
allowed distance. You can change the moved distance (that is squared,
however) or the allowed distance (which is not squared!) if you want the
player to be allowed to move further.| Modifier and Type | Field and Description |
|---|---|
double |
allowedDefaultDistance |
int |
climbingTicks
Deprecated.
|
double |
distanceSqMoved |
int |
fallingTicks
Deprecated.
|
double |
lastCalcX |
double |
lastCalcY |
AbstractPlayerEntity |
player |
| Constructor and Description |
|---|
ResetMovedPlayerEvent(AbstractPlayerEntity player,
double lastCalcX,
double lastCalcY,
double distanceSqMoved,
double allowedDefaultDistance) |
public final AbstractPlayerEntity player
public final double lastCalcX
public final double lastCalcY
@Deprecated public final int fallingTicks
@Deprecated public final int climbingTicks
public double distanceSqMoved
public double allowedDefaultDistance
public ResetMovedPlayerEvent(AbstractPlayerEntity player, double lastCalcX, double lastCalcY, double distanceSqMoved, double allowedDefaultDistance)