mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-02 11:26:42 +00:00
Added incomplete entity support to all Extents.
The Bukkit implementation supports the new entity API, but it has not yet been tested. The Forge implementation does not support the entity API yet. At the moment, an UnsupportedOperationException is thrown for Entity.getState() in some implementations, but use of an exception should probably not be allowed. BaseEntity is now an interface. It should not be possible to create instances of BaseEntity because it may be implementation-specific.
This commit is contained in:
@ -35,6 +35,13 @@ import com.sk89q.worldedit.world.World;
|
||||
*/
|
||||
public interface Entity {
|
||||
|
||||
/**
|
||||
* Get a copy of the entity's state.
|
||||
*
|
||||
* @return the entity's state
|
||||
*/
|
||||
BaseEntity getState();
|
||||
|
||||
/**
|
||||
* Get the location of this entity.
|
||||
*
|
||||
|
Reference in New Issue
Block a user