mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-02 17:32:03 +01:00
Added entity.get/setMomentum
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
9cadbbc93d
commit
5673661da0
1 changed files with 15 additions and 0 deletions
|
@ -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…
Reference in a new issue