geforkt von Mirrors/Paper
Add Sneaking API for Entities
Dieser Commit ist enthalten in:
Ursprung
981cf9de7a
Commit
f64904e777
@ -870,6 +870,18 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
|
|||||||
return Pose.values()[this.getHandle().getPose().ordinal()];
|
return Pose.values()[this.getHandle().getPose().ordinal()];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Paper start
|
||||||
|
@Override
|
||||||
|
public void setSneaking(boolean sneak) {
|
||||||
|
this.getHandle().setShiftKeyDown(sneak);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isSneaking() {
|
||||||
|
return this.getHandle().isShiftKeyDown();
|
||||||
|
}
|
||||||
|
// Paper end
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public SpawnCategory getSpawnCategory() {
|
public SpawnCategory getSpawnCategory() {
|
||||||
return CraftSpawnCategory.toBukkit(this.getHandle().getType().getCategory());
|
return CraftSpawnCategory.toBukkit(this.getHandle().getType().getCategory());
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren