@@ -1,4 +1,3 @@
|
||||
|
||||
package org.bukkit.entity;
|
||||
|
||||
import org.bukkit.Location;
|
||||
@@ -12,6 +11,7 @@ import java.util.List;
|
||||
* Represents a base entity in the world
|
||||
*/
|
||||
public interface Entity {
|
||||
|
||||
/**
|
||||
* Gets the entity's current position
|
||||
*
|
||||
@@ -109,7 +109,7 @@ public interface Entity {
|
||||
* @param ticks
|
||||
*/
|
||||
public void setFireTicks(int ticks);
|
||||
|
||||
|
||||
/**
|
||||
* Mark the entity's removal.
|
||||
*/
|
||||
@@ -130,14 +130,14 @@ public interface Entity {
|
||||
/**
|
||||
* Gets the primary passenger of a vehicle. For vehicles that could have
|
||||
* multiple passengers, this will only return the primary passenger.
|
||||
*
|
||||
*
|
||||
* @return an entity
|
||||
*/
|
||||
public abstract Entity getPassenger();
|
||||
|
||||
/**
|
||||
* Set the passenger of a vehicle.
|
||||
*
|
||||
*
|
||||
* @param passenger
|
||||
* @return false if it could not be done for whatever reason
|
||||
*/
|
||||
@@ -145,27 +145,27 @@ public interface Entity {
|
||||
|
||||
/**
|
||||
* Returns true if the vehicle has no passengers.
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public abstract boolean isEmpty();
|
||||
|
||||
/**
|
||||
* Eject any passenger. True if there was a passenger.
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public abstract boolean eject();
|
||||
|
||||
|
||||
/**
|
||||
* Returns the distance this entity has fallen
|
||||
* @return
|
||||
* @return
|
||||
*/
|
||||
public float getFallDistance();
|
||||
|
||||
|
||||
/**
|
||||
* Sets the fall distance for this entity
|
||||
* @param distance
|
||||
* @param distance
|
||||
*/
|
||||
public void setFallDistance(float distance);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user