Class LiveInvData

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

public class LiveInvData
extends Object
implements InvData, LiveData
  • Constructor Details

    • LiveInvData

      public LiveInvData​(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
    • getHelmet

      public org.bukkit.inventory.ItemStack getHelmet()
      Specified by:
      getHelmet in interface InvData
    • getChestplate

      public org.bukkit.inventory.ItemStack getChestplate()
      Specified by:
      getChestplate in interface InvData
    • getLeggings

      public org.bukkit.inventory.ItemStack getLeggings()
      Specified by:
      getLeggings in interface InvData
    • getBoots

      public org.bukkit.inventory.ItemStack getBoots()
      Specified by:
      getBoots in interface InvData
    • getItemInOffHand

      public org.bukkit.inventory.ItemStack getItemInOffHand()
      Specified by:
      getItemInOffHand in interface InvData
    • 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