diff options
author | sk89q <the.sk89q@gmail.com> | 2011-01-07 16:26:08 -0800 |
---|---|---|
committer | sk89q <the.sk89q@gmail.com> | 2011-01-07 16:26:08 -0800 |
commit | c9efe9454520fbe57a9d3e02eeb9d355915fb4dc (patch) | |
tree | c176b8fbac2f1e9e3bdf9d5d275306163205ec96 /src/main/java/net/minecraft/server/Entity.java | |
parent | e968096fc72e80731405d7f5d48848e43a94d1c1 (diff) | |
download | craftbukkit-c9efe9454520fbe57a9d3e02eeb9d355915fb4dc.tar craftbukkit-c9efe9454520fbe57a9d3e02eeb9d355915fb4dc.tar.gz craftbukkit-c9efe9454520fbe57a9d3e02eeb9d355915fb4dc.tar.lz craftbukkit-c9efe9454520fbe57a9d3e02eeb9d355915fb4dc.tar.xz craftbukkit-c9efe9454520fbe57a9d3e02eeb9d355915fb4dc.zip |
Added passenger methods to Vehicle/LivingEntity.
Diffstat (limited to 'src/main/java/net/minecraft/server/Entity.java')
-rw-r--r-- | src/main/java/net/minecraft/server/Entity.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/Entity.java b/src/main/java/net/minecraft/server/Entity.java index 69d854f4..759651c7 100644 --- a/src/main/java/net/minecraft/server/Entity.java +++ b/src/main/java/net/minecraft/server/Entity.java @@ -829,7 +829,10 @@ public abstract class Entity { return (double) J * 0.75D; } - public void e(Entity entity) { + public void setPassengerOf(Entity entity) { + // e(null) doesn't really fly for overloaded methods, + // so this method is needed + d = 0.0D; e = 0.0D; if (entity == null) { @@ -855,6 +858,10 @@ public abstract class Entity { k = entity; entity.j = this; } + + public void e(Entity entity) { + setPassengerOf(entity); + } public Vec3D C() { return null; |