From c23a6a4afc0acda8888e762bcfe5b012b1eefeb4 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Mon, 16 Jan 2023 20:53:42 +0100 Subject: [PATCH] Add Getter to UUID and move to location --- SpigotCore_Main/src/de/steamwar/entity/REntity.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/SpigotCore_Main/src/de/steamwar/entity/REntity.java b/SpigotCore_Main/src/de/steamwar/entity/REntity.java index 9b7969e..9e0c3e4 100644 --- a/SpigotCore_Main/src/de/steamwar/entity/REntity.java +++ b/SpigotCore_Main/src/de/steamwar/entity/REntity.java @@ -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;