Package de.themoep.ShowItem.api.data
Class LiveEnderData
java.lang.Object
de.themoep.ShowItem.api.data.LiveEnderData
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.inventory.ItemStack[]
Get the UUIDs of the players viewing this databoolean
isValid()
Checks whether or not this data is valid.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.themoep.ShowItem.api.data.EnderData
getGuiSetup, getType
-
Constructor Details
-
LiveEnderData
public LiveEnderData(org.bukkit.entity.Player player)
-
-
Method Details
-
getPlayerId
- Specified by:
getPlayerId
in interfaceData
-
getPlayerName
- Specified by:
getPlayerName
in interfaceData
-
getStorageContents
public org.bukkit.inventory.ItemStack[] getStorageContents()- Specified by:
getStorageContents
in interfaceData
-
isValid
public boolean isValid()Checks whether or not this data is valid. Live data is valid as long as the player it references can be found. -
getViewers
Get the UUIDs of the players viewing this data- Specified by:
getViewers
in interfaceLiveData
- Returns:
- A set with the UUIDs of the viewers
-