Class LiveEnderData

java.lang.Object
de.themoep.ShowItem.api.data.LiveEnderData
All Implemented Interfaces:
Data, EnderData, LiveData

public class LiveEnderData extends Object implements LiveData, EnderData
  • Constructor Details

    • LiveEnderData

      public LiveEnderData(org.bukkit.entity.Player player)
  • Method Details

    • getPlayerId

      public UUID getPlayerId()
      Specified by:
      getPlayerId in interface Data
    • getPlayerName

      public String getPlayerName()
      Specified by:
      getPlayerName in interface Data
    • getStorageContents

      public org.bukkit.inventory.ItemStack[] getStorageContents()
      Specified by:
      getStorageContents in interface Data
    • 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.
      Specified by:
      isValid in interface LiveData
      Returns:
      Whether or not this data is valid
    • getViewers

      public Set<UUID> getViewers()
      Get the UUIDs of the players viewing this data
      Specified by:
      getViewers in interface LiveData
      Returns:
      A set with the UUIDs of the viewers