Class BlockHologramData

All Implemented Interfaces:
YamlData

public class BlockHologramData extends DisplayHologramData
  • Field Details

    • DEFAULT_BLOCK

      public static org.bukkit.Material DEFAULT_BLOCK
  • Constructor Details

    • BlockHologramData

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

    • getBlock

      public org.bukkit.Material getBlock()
    • setBlock

      public BlockHologramData setBlock(org.bukkit.Material block)
    • 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 BlockHologramData copy(String name)
      Overrides:
      copy in class DisplayHologramData