mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-02 11:26:42 +00:00
Changed Location to use Extents rather than worlds and overhauled the new Entity code a bit.
This commit is contained in:
@ -21,7 +21,6 @@ package com.sk89q.worldedit.entity;
|
||||
|
||||
import com.sk89q.worldedit.extent.Extent;
|
||||
import com.sk89q.worldedit.util.Location;
|
||||
import com.sk89q.worldedit.world.World;
|
||||
|
||||
/**
|
||||
* A reference to an instance of an entity that exists in an {@link Extent}
|
||||
@ -50,10 +49,17 @@ public interface Entity {
|
||||
Location getLocation();
|
||||
|
||||
/**
|
||||
* Get the world that this entity is on.
|
||||
* Get the extent that this entity is on.
|
||||
*
|
||||
* @return the world
|
||||
* @return the extent
|
||||
*/
|
||||
World getWorld();
|
||||
Extent getExtent();
|
||||
|
||||
/**
|
||||
* Remove this entity from it container.
|
||||
*
|
||||
* @return true if removal was successful
|
||||
*/
|
||||
boolean remove();
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user