mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Added passenger methods to Vehicle/LivingEntity.
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user