SteamWar/SpigotCore
Archiviert
13
0

Add Getter to UUID and move to location
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
Lixfel 2023-01-16 20:53:42 +01:00
Ursprung f8b1bfa20a
Commit c23a6a4afc

Datei anzeigen

@ -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;