Add Getter to UUID and move to location
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Dieser Commit ist enthalten in:
Ursprung
f8b1bfa20a
Commit
c23a6a4afc
@ -46,6 +46,7 @@ public class REntity {
|
||||
private final REntityServer server;
|
||||
private final EntityType entityType;
|
||||
protected final int entityId;
|
||||
@Getter
|
||||
protected final UUID uuid;
|
||||
|
||||
protected double x;
|
||||
@ -84,6 +85,10 @@ public class REntity {
|
||||
server.addEntity(this);
|
||||
}
|
||||
|
||||
public void move(Location location) {
|
||||
move(location.getX(), location.getY(), location.getZ(), location.getPitch(), location.getYaw(), rotToByte(location.getYaw()));
|
||||
}
|
||||
|
||||
public void move(double locX, double locY, double locZ, float pitch, float yaw, byte headYaw) {
|
||||
server.preEntityMove(this, locX, locZ);
|
||||
double fromX = this.x;
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren