Implemented Sneak event

This commit is contained in:
Alexander Hesse
2011-01-25 19:08:54 +01:00
committed by Erik Broes
parent 1a983aceb3
commit 6ad4ca2a42
2 changed files with 20 additions and 0 deletions

View File

@@ -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();
}
}