Added passenger methods to Vehicle/LivingEntity.

This commit is contained in:
sk89q committed 2011-01-07 16:26:08 -08:00
1 parent e968096fc7
commit c9efe94545
4 files changed
+50 -2

No files matched your search

@@ -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;