mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-16 12:43:52 -07:00
Implemented Sneak event
By: Alexander Hesse <webmasterœaquanasoft.de>
This commit is contained in:
@@ -150,4 +150,12 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
|||||||
entity.a.a(location.getX(), location.getY(), location.getZ(), location.getYaw(), location.getPitch());
|
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