Commits
Matthew Steglinski authored and md_5 committed 032d1ff804d
1 1 | package org.bukkit.entity; |
2 2 | |
3 3 | import org.bukkit.GameMode; |
4 4 | import org.bukkit.Location; |
5 + | import org.bukkit.inventory.MainHand; |
5 6 | import org.bukkit.inventory.Inventory; |
6 7 | import org.bukkit.inventory.InventoryHolder; |
7 8 | import org.bukkit.inventory.InventoryView; |
8 9 | import org.bukkit.inventory.ItemStack; |
9 10 | import org.bukkit.inventory.PlayerInventory; |
10 11 | import org.bukkit.permissions.Permissible; |
11 12 | |
12 13 | /** |
13 14 | * Represents a human entity, such as an NPC or a player |
14 15 | */ |
29 30 | */ |
30 31 | public PlayerInventory getInventory(); |
31 32 | |
32 33 | /** |
33 34 | * Get the player's EnderChest inventory |
34 35 | * |
35 36 | * @return The EnderChest of the player |
36 37 | */ |
37 38 | public Inventory getEnderChest(); |
38 39 | |
40 + | /** |
41 + | * Gets the players selected main hand |
42 + | * |
43 + | * @return the players main hand |
44 + | */ |
45 + | public MainHand getMainHand(); |
46 + | |
39 47 | /** |
40 48 | * If the player currently has an inventory window open, this method will |
41 49 | * set a property of that window, such as the state of a progress bar. |
42 50 | * |
43 51 | * @param prop The property. |
44 52 | * @param value The value to set the property to. |
45 53 | * @return True if the property was successfully set. |
46 54 | */ |
47 55 | public boolean setWindowProperty(InventoryView.Property prop, int value); |
48 56 | |