From b09f01d4f740a6c76037926bfe6df69649d92f6c Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot <noreply+git-craftbukkit@papermc.io> Date: Mon, 4 Apr 2011 00:48:40 -0400 Subject: [PATCH] added some API for entities By: Tahg <tahgtahv@gmail.com> --- paper-server/.gitignore | 27 ------------------- .../craftbukkit/entity/CraftEntity.java | 8 ++++++ 2 files changed, 8 insertions(+), 27 deletions(-) delete mode 100644 paper-server/.gitignore diff --git a/paper-server/.gitignore b/paper-server/.gitignore deleted file mode 100644 index a841025d4e..0000000000 --- a/paper-server/.gitignore +++ /dev/null @@ -1,27 +0,0 @@ -# Eclipse stuff -/.classpath -/.project -/.settings - -# netbeans -/nbproject - -# we use maven! -/build.xml - -# maven -/target - -# vim -.*.sw[a-p] - -# various other potential build files -/build -/bin -/dist -/manifest.mf - -/world - -# Mac filesystem dust -/.DS_Store \ No newline at end of file diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java index a9fc75fb44..af535ba226 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java @@ -238,4 +238,12 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity { getHandle().passenger.setPassengerOf(null); return true; } + + public float getFallDistance() { + return getHandle().fallDistance; + } + + public void setFallDistance(float distance) { + getHandle().fallDistance = distance; + } }