Added interface for player.saveData and player.loadData.
This commit is contained in:
parent
4d0acea6c9
commit
47d436c386
@ -98,6 +98,18 @@ public interface Player extends HumanEntity, CommandSender {
|
|||||||
*/
|
*/
|
||||||
public void setSneaking(boolean sneak);
|
public void setSneaking(boolean sneak);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Saves the players current location, health, inventory, motion, and other information into the username.dat file, in the world/player folder
|
||||||
|
*/
|
||||||
|
public void saveData();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Loads the players current location, health, inventory, motion, and other information from the username.dat file, in the world/player folder
|
||||||
|
*
|
||||||
|
* Note: This will overwrite the players current inventory, health, motion, etc, with the state from the saved dat file.
|
||||||
|
*/
|
||||||
|
public void loadData();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Forces an update of the player's entire inventory.
|
* Forces an update of the player's entire inventory.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user