add setLocation
This commit is contained in:
parent
a318500c4e
commit
88dbb7a474
1 changed files with 7 additions and 0 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue