Class HologramHandler

java.lang.Object
com.bencodez.advancedcore.api.hologram.HologramHandler

public class HologramHandler extends Object
Handler for managing holograms.
  • Constructor Details

    • HologramHandler

      public HologramHandler(AdvancedCorePlugin plugin)
      Constructs a new HologramHandler.
      Parameters:
      plugin - the plugin instance
  • Method Details

    • add

      public void add(Hologram hologram)
      Adds a hologram to the handler.
      Parameters:
      hologram - the hologram to add
    • onShutDown

      public void onShutDown()
      Called on shutdown to clean up all holograms.
    • remove

      public void remove(Hologram hologram)
      Removes a hologram from the handler and kills it.
      Parameters:
      hologram - the hologram to remove
    • remove

      public void remove(Hologram hologram, boolean kill)
      Removes a hologram from the handler.
      Parameters:
      hologram - the hologram to remove
      kill - whether to kill the hologram