Have BukkitEntity.getState() return null for now.

This commit is contained in:
sk89q 2014-07-14 02:15:21 -07:00
parent f50c69ee8f
commit c535ad8682
2 changed files with 5 additions and 2 deletions

View File

@ -74,7 +74,7 @@ class BukkitEntity implements Entity {
@Override @Override
public BaseEntity getState() { public BaseEntity getState() {
throw new UnsupportedOperationException("Not implemented yet"); return null;
} }
@Override @Override

View File

@ -22,6 +22,8 @@ package com.sk89q.worldedit.entity;
import com.sk89q.worldedit.extent.Extent; import com.sk89q.worldedit.extent.Extent;
import com.sk89q.worldedit.util.Location; import com.sk89q.worldedit.util.Location;
import javax.annotation.Nullable;
/** /**
* A reference to an instance of an entity that exists in an {@link Extent} * A reference to an instance of an entity that exists in an {@link Extent}
* and thus would have position and similar details. * and thus would have position and similar details.
@ -37,8 +39,9 @@ public interface Entity {
/** /**
* Get a copy of the entity's state. * Get a copy of the entity's state.
* *
* @return the entity's state * @return the entity's state or null if one cannot be gotten
*/ */
@Nullable
BaseEntity getState(); BaseEntity getState();
/** /**