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;