Package me.ulrich.outpost.interfaces
Interface HologramAPI
public interface HologramAPI
The
HologramAPI which handles connections between multiple Hologram sources-
Method Summary
Modifier and TypeMethodDescriptionvoidappendLine(Hologram hologram, Line line) createHologram(Outpost plugin, org.bukkit.Location location, String id, Object extra) Create aHologramvoidDelete a hologramvoidhideTo(VisibilityManager visibilityManager, org.bukkit.entity.Player player) Hide a hologram from a playerbooleanremoveIfPreset(Outpost plugin, String id) voidSet a holograms line at an indexvoidshowTo(VisibilityManager visibilityManager, org.bukkit.entity.Player player) Show a hologram to a playervoidTeleport a hologramvoidupdateLine(Hologram hologram, int lineIndex, Line line) Update aHolograms line
-
Method Details
-
createHologram
Create aHologram- Parameters:
location- The startingLocationextra-id-- Returns:
- The created
Hologram
-
removeIfPreset
-
setLine
Set a holograms line at an index -
updateLine
Update aHolograms line -
appendLine
-
teleport
Teleport a hologram- Parameters:
hologram- TheHologramto teleportlocation- TheLocationto teleport it to
-
delete
Delete a hologram -
showTo
Show a hologram to a player- Parameters:
visibilityManager- TheVisibilityManagerto useplayer- The player
-
hideTo
Hide a hologram from a player- Parameters:
visibilityManager- TheVisibilityManagerto useplayer- The player
-