mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-16 18:31:53 +01:00
Implemented Sneak event
By: Alexander Hesse <webmasterœaquanasoft.de>
This commit is contained in:
parent
beb34ae835
commit
f3a00a79b4
1 changed files with 8 additions and 0 deletions
|
@ -150,4 +150,12 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
|||
entity.a.a(location.getX(), location.getY(), location.getZ(), location.getYaw(), location.getPitch());
|
||||
}
|
||||
}
|
||||
|
||||
public void setSneaking(boolean sneak) {
|
||||
entity.b(sneak);
|
||||
}
|
||||
|
||||
public boolean isSneaking() {
|
||||
return entity.J();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue