From 88dbb7a474a369d1c2c100926a07953e14f58350 Mon Sep 17 00:00:00 2001 From: Tofaa <82680183+Tofaa2@users.noreply.github.com> Date: Sun, 11 Feb 2024 22:51:17 +0400 Subject: [PATCH] add setLocation --- src/main/java/me/tofaa/entitylib/entity/WrapperEntity.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/me/tofaa/entitylib/entity/WrapperEntity.java b/src/main/java/me/tofaa/entitylib/entity/WrapperEntity.java index b5f19e2..1d7e120 100644 --- a/src/main/java/me/tofaa/entitylib/entity/WrapperEntity.java +++ b/src/main/java/me/tofaa/entitylib/entity/WrapperEntity.java @@ -33,6 +33,13 @@ public class WrapperEntity implements Tickable { this.entityId = entityId; } + /** + Internally sets the location of this entity. This does not inform any of the entities viewers about this change. + */ + public void setLocation(Location location) { + this.location = location; + } + public void refresh() { if (!spawned) return; sendPacketToViewers(meta.createPacket());