Package me.ulrich.outpost.interfaces
Interface Hologram
- All Known Implementing Classes:
OptimalHologram
public interface Hologram
The interface which handles
Hologram connections-
Method Summary
Modifier and TypeMethodDescriptionappendItemLine(org.bukkit.inventory.ItemStack itemStack) voidappendLine(Line line) appendTextLine(String text) voiddelete()Delete theHologram, and all attached entitiesgetExtra()getId()getLineAt(int index) Get aLineat an indexintgetLineIndex(Line line) Get the index of aLinegetLines()org.bukkit.LocationGet theHolograms currentLocationGet theVisibilityManagerfor theHologramvoidSet aLineat an indexintsize()Get the size of all the attachedLinesvoidteleport(org.bukkit.Location location) Teleport theHologramto a different locationvoidupdateLine(int index, Line line) Update aLineat an index
-
Method Details
-
getLines
Collection<Line> getLines()- Returns:
- The
CollectionofHologramLines
-
getLineAt
Get aLineat an index- Parameters:
index- The index to use to fetch the line- Returns:
- The
Line
-
getLineIndex
Get the index of aLine -
setLineAt
Set aLineat an index- Parameters:
index- The index to setline- TheLineto set at that index
-
updateLine
Update aLineat an index- Parameters:
index- The index to updateline- TheLineto change it to
-
appendLine
- Parameters:
line- TheLineto append
-
appendItemLine
- Parameters:
itemStack- TheItemStackto display- Returns:
- The
ItemLinecreated
-
appendTextLine
-
getVisibilityManager
VisibilityManager getVisibilityManager()Get theVisibilityManagerfor theHologram- Returns:
- The
VisibilityManager
-
getLocation
org.bukkit.Location getLocation()Get theHolograms currentLocation- Returns:
- The
Location
-
teleport
void teleport(org.bukkit.Location location) Teleport theHologramto a different location- Parameters:
location- The newHologramLocation
-
delete
void delete()Delete theHologram, and all attached entities -
size
int size()Get the size of all the attachedLines -
getHologramAsObject
Object getHologramAsObject()- Returns:
- The
Object
-
getId
String getId() -
getExtra
Object getExtra()
-