add setLocation

This commit is contained in:
Tofaa 2024-02-11 22:51:17 +04:00 committed by GitHub
parent a318500c4e
commit 88dbb7a474
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -33,6 +33,13 @@ public class WrapperEntity implements Tickable {
this.entityId = entityId; 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() { public void refresh() {
if (!spawned) return; if (!spawned) return;
sendPacketToViewers(meta.createPacket()); sendPacketToViewers(meta.createPacket());