Added entity.get/setMomentum
This commit is contained in:
parent
6f07fa7291
commit
97d2adb536
@ -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
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user