From 5673661da0ab43880a1c7ee3127fd9924c14adfe Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Fri, 4 Mar 2011 14:24:09 +0000 Subject: [PATCH] Added entity.get/setMomentum By: Dinnerbone --- .../src/main/java/org/bukkit/entity/Entity.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/entity/Entity.java b/paper-api/src/main/java/org/bukkit/entity/Entity.java index 426b35f7b8..8b5d9e8ad6 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Entity.java +++ b/paper-api/src/main/java/org/bukkit/entity/Entity.java @@ -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 *