Added entity.get/setMomentum

This commit is contained in:
Dinnerbone 2011-03-04 14:24:09 +00:00
parent 6f07fa7291
commit 97d2adb536

View File

@ -4,6 +4,7 @@ package org.bukkit.entity;
import org.bukkit.Location;
import org.bukkit.Server;
import org.bukkit.World;
import org.bukkit.util.Vector;
/**
* Represents a base entity in the world
@ -16,6 +17,20 @@ public interface Entity {
*/
public Location getLocation();
/**
* Gets this entity's current momentum
*
* @return Current travelling momentum of this entity
*/
public Vector getMomentum();
/**
* Sets this entity's momentum
*
* @param vector New momentum to travel with
*/
public void setMomentum(Vector vector);
/**
* Gets the current world this entity resides in
*