Class ExpiredItem

java.lang.Object
dev.tezvn.timeditem.constants.ExpiredItem

public class ExpiredItem
extends java.lang.Object
Represents items that expired
  • Constructor Summary

    Constructors 
    Constructor Description
    ExpiredItem​(org.bukkit.inventory.ItemStack item)  
  • Method Summary

    Modifier and Type Method Description
    long getExpireDate()
    Gets expired time of item
    org.bukkit.inventory.ItemStack getItem()
    Get item from encoded string
    java.lang.String getItemSerial()
    Get item as encoded strings
    java.util.UUID getItemUUID()
    Gets item's UUID
    boolean setItem​(org.bukkit.inventory.ItemStack item)
    Sets new item

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ExpiredItem

      public ExpiredItem​(org.bukkit.inventory.ItemStack item)
  • Method Details

    • getItemSerial

      public java.lang.String getItemSerial()
      Get item as encoded strings
      Returns:
      Base64 strings
    • getItem

      public org.bukkit.inventory.ItemStack getItem()
      Get item from encoded string
      Returns:
      Decoded ItemStack from Base64
    • setItem

      public boolean setItem​(org.bukkit.inventory.ItemStack item)
      Sets new item
      Parameters:
      item - ItemStack to set
      Returns:
      True if success
      Throws:
      java.lang.IllegalArgumentException - If item is null or material is "Material.AIR"
    • getExpireDate

      public long getExpireDate()
      Gets expired time of item
      Returns:
      Expire time of item
    • getItemUUID

      public java.util.UUID getItemUUID()
      Gets item's UUID
      Returns:
      UUID of item