Added PlayerToggleSprint event and sprinting related API.
By: Rigby <rigby@onarandombox.com>
This commit is contained in:
@@ -98,6 +98,20 @@ public interface Player extends HumanEntity, CommandSender, OfflinePlayer {
|
||||
*/
|
||||
public void setSneaking(boolean sneak);
|
||||
|
||||
/**
|
||||
* Gets whether the player is sprinting or not.
|
||||
*
|
||||
* @return true if player is sprinting.
|
||||
*/
|
||||
public boolean isSprinting();
|
||||
|
||||
/**
|
||||
* Sets whether the player is sprinting or not.
|
||||
*
|
||||
* @param sprinting true if the player should be sprinting
|
||||
*/
|
||||
public void setSprinting(boolean sprinting);
|
||||
|
||||
/**
|
||||
* Saves the players current location, health, inventory, motion, and other information into the username.dat file, in the world/player folder
|
||||
*/
|
||||
@@ -298,6 +312,7 @@ public interface Player extends HumanEntity, CommandSender, OfflinePlayer {
|
||||
*
|
||||
* @return Current experience points
|
||||
*/
|
||||
|
||||
public int getExperience();
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user