1
0
Fork 0
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:
CraftBukkit/Spigot 2011-01-25 19:08:54 +01:00
parent beb34ae835
commit f3a00a79b4

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