mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-11 16:36:58 -04:00
enable OtherPlayer velocity
This commit is contained in:
parent
7571a50c6a
commit
2f42a11267
@ -24,6 +24,7 @@ public class OtherPlayer implements Mob {
|
|||||||
final UUID uuid;
|
final UUID uuid;
|
||||||
PlayerPropertyData[] properties;
|
PlayerPropertyData[] properties;
|
||||||
Location location;
|
Location location;
|
||||||
|
Velocity velocity;
|
||||||
int yaw;
|
int yaw;
|
||||||
int pitch;
|
int pitch;
|
||||||
int headYaw;
|
int headYaw;
|
||||||
@ -70,16 +71,14 @@ public class OtherPlayer implements Mob {
|
|||||||
location = new Location(location.getX() + relativeLocation.getX(), location.getY() + relativeLocation.getY(), location.getZ() + relativeLocation.getZ());
|
location = new Location(location.getX() + relativeLocation.getX(), location.getY() + relativeLocation.getY(), location.getZ() + relativeLocation.getZ());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
|
||||||
@Override
|
@Override
|
||||||
public Velocity getVelocity() {
|
public Velocity getVelocity() {
|
||||||
return null;
|
return velocity;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
|
||||||
@Override
|
@Override
|
||||||
public void setVelocity(Velocity velocity) {
|
public void setVelocity(Velocity velocity) {
|
||||||
|
this.velocity = velocity;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user