Class PlayerInventoryData
java.lang.Object
org.mvplugins.multiverse.inventories.view.PlayerInventoryData
Represents the loaded inventory data.
- Since:
- 5.2
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal org.bukkit.inventory.ItemStack[]
final org.bukkit.inventory.ItemStack[]
final Float
final Integer
final Double
final String
final Integer
final Double
final org.bukkit.inventory.ItemStack
final ProfileType
final Float
final InventoryStatus
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerInventoryData
(org.bukkit.inventory.ItemStack[] contents, org.bukkit.inventory.ItemStack[] armor, org.bukkit.inventory.ItemStack offHand, InventoryStatus status, ProfileType profileTypeUsed, Double health, Double maxHealth, Integer level, Float exp, Integer foodLevel, Float saturation, String lastLocation) -
Method Summary
-
Field Details
-
contents
public final org.bukkit.inventory.ItemStack[] contents -
armor
public final org.bukkit.inventory.ItemStack[] armor -
offHand
public final org.bukkit.inventory.ItemStack offHand -
status
-
profileTypeUsed
-
health
-
maxHealth
-
level
-
exp
-
foodLevel
-
saturation
-
lastLocation
-
-
Constructor Details
-
PlayerInventoryData
@AvailableSince("5.2") public PlayerInventoryData(org.bukkit.inventory.ItemStack[] contents, org.bukkit.inventory.ItemStack[] armor, org.bukkit.inventory.ItemStack offHand, InventoryStatus status, ProfileType profileTypeUsed, Double health, Double maxHealth, Integer level, Float exp, Integer foodLevel, Float saturation, String lastLocation) - Parameters:
contents
- The player's main inventory contents (slots 0-35).armor
- The player's armor contents (boots, leggings, chestplate, helmet).offHand
- The player's off-hand item.status
- The status of the inventory data load (e.g., LIVE, STORED, NO_DATA_FOUND).profileTypeUsed
- The profile type that was used to retrieve the data (e.g., SURVIVAL).health
- The player's current health.maxHealth
- The player's maximum health.level
- The player's current experience level.exp
- The player's current experience progress towards the next level (0.0-1.0).foodLevel
- The player's current food level (0-20).saturation
- The player's current saturation level.lastLocation
- The player's last location.- Since:
- 5.2
-