Moved LocalWorld's members upwards to AbstractWorld and World.

This commit is contained in:
sk89q
2014-04-04 22:40:29 -07:00
parent d4c910a012
commit 7ed1718d21
8 changed files with 1189 additions and 1039 deletions

View File

@ -19,10 +19,7 @@
package com.sk89q.worldedit.entity;
import com.sk89q.worldedit.PlayerDirection;
import com.sk89q.worldedit.Vector;
import com.sk89q.worldedit.WorldVector;
import com.sk89q.worldedit.WorldVectorFace;
import com.sk89q.worldedit.*;
import com.sk89q.worldedit.extent.Extent;
/**
@ -35,7 +32,7 @@ import com.sk89q.worldedit.extent.Extent;
* can then be used to spawn new instances of that particular entity
* description.
*/
public interface Entity extends Player {
public interface Entity {
/**
* Find a position for the actor to stand that is not inside a block.
@ -215,4 +212,11 @@ public interface Entity extends Player {
*/
void setPosition(Vector pos);
/**
* Get the world that this entity is on.
*
* @return the world
*/
LocalWorld getWorld();
}

View File

@ -27,7 +27,7 @@ import com.sk89q.worldedit.extent.inventory.BlockBag;
/**
* A player.
*/
public interface Player {
public interface Player extends Entity {
/**
* Returns true if the entity is holding a pick axe.