public final class ResetMovedPlayerEvent extends Event
AbstractEntityPlayer 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 | Description |
|---|---|---|
double |
allowedDefaultDistance |
|
int |
climbingTicks |
|
double |
distanceSqMoved |
|
int |
fallingTicks |
|
double |
lastCalcX |
|
double |
lastCalcY |
|
AbstractEntityPlayer |
player |
| Constructor | Description |
|---|---|
ResetMovedPlayerEvent(AbstractEntityPlayer player,
double lastCalcX,
double lastCalcY,
int fallingTicks,
int climbingTicks,
double distanceSqMoved,
double allowedDefaultDistance) |
public final AbstractEntityPlayer player
public final double lastCalcX
public final double lastCalcY
public final int fallingTicks
public final int climbingTicks
public double distanceSqMoved
public double allowedDefaultDistance
public ResetMovedPlayerEvent(AbstractEntityPlayer player, double lastCalcX, double lastCalcY, int fallingTicks, int climbingTicks, double distanceSqMoved, double allowedDefaultDistance)