Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-17 05:20:05 +01:00
Implemented Entity.get/setMomentum
Dieser Commit ist enthalten in:
Ursprung
770bb9e3b5
Commit
9a64d7ec1b
@ -177,4 +177,14 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
|
|||||||
public CraftServer getServer() {
|
public CraftServer getServer() {
|
||||||
return server;
|
return server;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Vector getMomentum() {
|
||||||
|
return new Vector(entity.motX, entity.motY, entity.motZ);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMomentum(Vector value) {
|
||||||
|
entity.motX = value.getX();
|
||||||
|
entity.motY = value.getY();
|
||||||
|
entity.motZ = value.getZ();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren