Class HologramsService
java.lang.Object
io.github.thebusybiscuit.slimefun4.core.services.holograms.HologramsService
This service is responsible for handling holograms.
- Author:
- TheBusyBiscuit
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionHologramsService(org.bukkit.plugin.Plugin plugin) This constructs a newHologramsService. -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.util.VectorThis returns the defaultHologramoffset.booleanremoveHologram(org.bukkit.Location loc) This removes theHologramat that givenLocation.voidsetHologramLabel(org.bukkit.Location loc, String label) This will update the label of theHologram.voidstart()This will start theHologramsServiceand schedule a repeating purge-task.
-
Constructor Details
-
HologramsService
public HologramsService(@Nonnull org.bukkit.plugin.Plugin plugin) This constructs a newHologramsService.- Parameters:
plugin- OurPlugininstance
-
-
Method Details
-
start
public void start()This will start theHologramsServiceand schedule a repeating purge-task. -
getDefaultOffset
@Nonnull public org.bukkit.util.Vector getDefaultOffset()This returns the defaultHologramoffset.- Returns:
- The default offset
-
removeHologram
public boolean removeHologram(@Nonnull org.bukkit.Location loc) This removes theHologramat that givenLocation.This method must be executed on the main
ServerThread.- Parameters:
loc- TheLocation- Returns:
- Whether the
Hologramcould be removed, false if theHologramdoes not exist or was already removed
-
setHologramLabel
This will update the label of theHologram.- Parameters:
loc- TheLocationof thisHologramlabel- The label to set, can be null
-