mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-14 11:45:52 -07:00
Added passenger methods to Vehicle/LivingEntity.
This commit is contained in:
@@ -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