Class ItemHologramData

All Implemented Interfaces:
YamlData

public class ItemHologramData extends DisplayHologramData
  • Field Details

    • DEFAULT_ITEM

      public static final org.bukkit.inventory.ItemStack DEFAULT_ITEM
  • Constructor Details

    • ItemHologramData

      public ItemHologramData(String name, org.bukkit.Location location)
      Parameters:
      name - Name of hologram
      location - Location of hologram Default values are already set
  • Method Details

    • getItemStack

      public org.bukkit.inventory.ItemStack getItemStack()
    • setItemStack

      public ItemHologramData setItemStack(org.bukkit.inventory.ItemStack item)
    • read

      public boolean read(org.bukkit.configuration.ConfigurationSection section, String name)
      Description copied from interface: YamlData
      Reads the data from the given configuration section.
      Specified by:
      read in interface YamlData
      Overrides:
      read in class DisplayHologramData
      Returns:
      Whether the data was read successfully.
    • write

      public boolean write(org.bukkit.configuration.ConfigurationSection section, String name)
      Description copied from interface: YamlData
      Writes the data to the given configuration section.
      Specified by:
      write in interface YamlData
      Overrides:
      write in class DisplayHologramData
      Returns:
      Whether the data was written successfully.
    • copy

      public ItemHologramData copy(String name)
      Overrides:
      copy in class DisplayHologramData