Package com.maximde.hologramlib.hologram
Class HologramManager
java.lang.Object
com.maximde.hologramlib.hologram.HologramManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyAnimation
(TextHologram hologram, TextAnimation textAnimation) void
void
void
cancelAnimation
(TextHologram hologram) copyHologram
(H source) copyHologram
(H source, boolean persistent) copyHologram
(H source, String id) copyHologram
(H source, String id, boolean persistent) generateLeaderboard
(org.bukkit.Location location, Map<Integer, String> leaderboardData) generateLeaderboard
(org.bukkit.Location location, Map<Integer, String> leaderboardData, boolean persistant) generateLeaderboard
(org.bukkit.Location location, Map<Integer, String> leaderboardData, LeaderboardHologram.LeaderboardOptions options) generateLeaderboard
(org.bukkit.Location location, Map<Integer, String> leaderboardData, LeaderboardHologram.LeaderboardOptions options, boolean persistant) getHologram
(String id) Deprecated.Deprecated.boolean
hologramExists
(Hologram<?> hologram) boolean
hologramExists
(String id) void
ifHologramExists
(String id, Consumer<Hologram<?>> action) boolean
makePersistent
(String id) Makes an existing hologram persistent so it will be saved and loaded on server restart.<H extends Hologram<H>>
booleanregister
(H hologram) boolean
boolean
boolean
remove
(LeaderboardHologram leaderboardHologram) boolean
remove
(LeaderboardHologram leaderboardHologram, boolean removePersistence) boolean
boolean
void
void
removeAll
(boolean removePersistence) boolean
Removes persistence from a hologram so it will no longer be saved.<H extends Hologram<H>>
Hspawn
(H hologram, org.bukkit.Location location) <H extends Hologram<H>>
Hspawn
(H hologram, org.bukkit.Location location, boolean persistent) boolean
updateHologramIfExists
(String id, Consumer<Hologram<?>> updateAction) void
updateLeaderboard
(LeaderboardHologram leaderboardHologram, Map<Integer, String> leaderboardData, LeaderboardHologram.LeaderboardOptions options)
-
Constructor Details
-
HologramManager
public HologramManager()
-
-
Method Details
-
getHologramsMap
Deprecated. -
getHologramAnimations
Deprecated. -
hologramExists
-
hologramExists
-
getHolograms
-
getHologramIds
-
getHologram
-
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
-
spawn
public <H extends Hologram<H>> H spawn(H hologram, org.bukkit.Location location, boolean persistent) -
attach
-
attach
-
register
-
remove
-
remove
-
remove
-
remove
-
removeAll
public void removeAll(boolean removePersistence) -
removeAll
public void removeAll() -
remove
-
remove
-
applyAnimation
-
cancelAnimation
-
ifHologramExists
-
updateHologramIfExists
-
copyHologram
-
copyHologram
-
copyHologram
-
copyHologram
-
makePersistent
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
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
-