mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-04 20:16:41 +00:00
Added a method to teleport entities across worlds.
This commit is contained in:
@ -110,6 +110,12 @@ public class ChangeSetExtent extends AbstractDelegateExtent {
|
||||
return entity.getLocation();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean setLocation(Location location) {
|
||||
// TODO Add a changeset for this.
|
||||
return entity.setLocation(location);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Extent getExtent() {
|
||||
return entity.getExtent();
|
||||
|
@ -68,6 +68,11 @@ abstract class StoredEntity implements Entity {
|
||||
return location;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean setLocation(Location location) {
|
||||
throw new IllegalArgumentException("StoredEntities are immutable");
|
||||
}
|
||||
|
||||
@Override
|
||||
public Extent getExtent() {
|
||||
return location.getExtent();
|
||||
|
Reference in New Issue
Block a user