Implemented Sneak event
This commit is contained in:
committed by
Erik Broes
parent
1a983aceb3
commit
6ad4ca2a42
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user