Class HologramManager

java.lang.Object
com.maximde.hologramlib.hologram.HologramManager

public class HologramManager extends Object
  • Constructor Details

    • HologramManager

      public HologramManager()
  • Method Details

    • getHologramsMap

      @Deprecated public Map<String,Hologram<?>> getHologramsMap()
      Deprecated.
    • getHologramAnimations

      @Deprecated public Map<TextHologram,TaskHandle> getHologramAnimations()
      Deprecated.
    • hologramExists

      public boolean hologramExists(String id)
    • hologramExists

      public boolean hologramExists(Hologram<?> hologram)
    • getHolograms

      public List<Hologram<?>> getHolograms()
    • getHologramIds

      public List<String> getHologramIds()
    • getHologram

      public Optional<Hologram<?>> getHologram(String id)
    • generateLeaderboard

      public LeaderboardHologram generateLeaderboard(org.bukkit.Location location, Map<Integer,String> leaderboardData, boolean persistant)
    • generateLeaderboard

      public LeaderboardHologram generateLeaderboard(org.bukkit.Location location, Map<Integer,String> leaderboardData)
    • generateLeaderboard

      public LeaderboardHologram generateLeaderboard(org.bukkit.Location location, Map<Integer,String> leaderboardData, LeaderboardHologram.LeaderboardOptions options)
    • generateLeaderboard

      public LeaderboardHologram generateLeaderboard(org.bukkit.Location location, Map<Integer,String> leaderboardData, LeaderboardHologram.LeaderboardOptions options, boolean persistant)
    • updateLeaderboard

      public void updateLeaderboard(LeaderboardHologram leaderboardHologram, Map<Integer,String> leaderboardData, LeaderboardHologram.LeaderboardOptions options)
    • spawn

      public <H extends Hologram<H>> H spawn(H hologram, org.bukkit.Location location)
    • spawn

      public <H extends Hologram<H>> H spawn(H hologram, org.bukkit.Location location, boolean persistent)
    • attach

      public void attach(Hologram<?> hologram, int entityID)
    • attach

      public void attach(Hologram<?> hologram, int entityID, boolean persistent)
    • register

      public <H extends Hologram<H>> boolean register(H hologram)
    • remove

      public boolean remove(Hologram<?> hologram, boolean removePersistence)
    • remove

      public boolean remove(String id, boolean removePersistence)
    • remove

      public boolean remove(Hologram<?> hologram)
    • remove

      public boolean remove(String id)
    • removeAll

      public void removeAll(boolean removePersistence)
    • removeAll

      public void removeAll()
    • remove

      public boolean remove(LeaderboardHologram leaderboardHologram, boolean removePersistence)
    • remove

      public boolean remove(LeaderboardHologram leaderboardHologram)
    • applyAnimation

      public void applyAnimation(TextHologram hologram, TextAnimation textAnimation)
    • cancelAnimation

      public void cancelAnimation(TextHologram hologram)
    • ifHologramExists

      public void ifHologramExists(String id, Consumer<Hologram<?>> action)
    • updateHologramIfExists

      public boolean updateHologramIfExists(String id, Consumer<Hologram<?>> updateAction)
    • copyHologram

      public <H extends Hologram<H>> Hologram<H> copyHologram(H source, String id)
    • copyHologram

      public <H extends Hologram<H>> Hologram<H> copyHologram(H source, String id, boolean persistent)
    • copyHologram

      public <H extends Hologram<H>> Hologram<H> copyHologram(H source)
    • copyHologram

      public <H extends Hologram<H>> Hologram<H> copyHologram(H source, boolean persistent)
    • makePersistent

      public boolean makePersistent(String id)
      Makes an existing hologram persistent so it will be saved and loaded on server restart.
      Parameters:
      id - The ID of the hologram to make persistent
      Returns:
      true if the hologram was found and made persistent, false otherwise
    • removePersistence

      public boolean removePersistence(String id)
      Removes persistence from a hologram so it will no longer be saved. The hologram will remain active until the server restarts.
      Parameters:
      id - The ID of the hologram to remove persistence from
      Returns:
      true if the hologram was found and persistence was removed, false otherwise