diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java index aed3bd8e28..e40ba0bd40 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java @@ -177,4 +177,14 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity { public CraftServer getServer() { return server; } + + public Vector getMomentum() { + return new Vector(entity.motX, entity.motY, entity.motZ); + } + + public void setMomentum(Vector value) { + entity.motX = value.getX(); + entity.motY = value.getY(); + entity.motZ = value.getZ(); + } }