Package me.ulrich.outpost.data
Class OptimalHologram
java.lang.Object
me.ulrich.outpost.data.OptimalHologram
- All Implemented Interfaces:
Hologram
The default implementation of the
Hologram-
Constructor Summary
ConstructorsConstructorDescriptionOptimalHologram(HologramAPI connector, Object hologramObject, org.bukkit.Location location, String id, Object extra) Create a new hologram -
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
-
Constructor Details
-
OptimalHologram
public OptimalHologram(HologramAPI connector, Object hologramObject, org.bukkit.Location location, String id, Object extra) Create a new hologram- Parameters:
connector- The connector to usehologramObject- The hologram object for the connectorlocation- The starting location
-
-
Method Details
-
getLines
Description copied from interface:Hologram- Specified by:
getLinesin interfaceHologram- Returns:
- The
CollectionofHologramLines
-
getLineAt
Description copied from interface:HologramGet aLineat an index -
getLineIndex
Description copied from interface:HologramGet the index of aLine- Specified by:
getLineIndexin interfaceHologram- Parameters:
line- TheLineto find the index for- Returns:
- The
Lineindex
-
setLineAt
Description copied from interface:HologramSet aLineat an index -
updateLine
Description copied from interface:HologramUpdate aLineat an index- Specified by:
updateLinein interfaceHologram- Parameters:
index- The index to updateline- TheLineto change it to
-
appendLine
Description copied from interface:Hologram- Specified by:
appendLinein interfaceHologram- Parameters:
line- TheLineto append
-
appendItemLine
Description copied from interface:Hologram- Specified by:
appendItemLinein interfaceHologram- Parameters:
itemStack- TheItemStackto display- Returns:
- The
ItemLinecreated
-
appendTextLine
Description copied from interface:Hologram- Specified by:
appendTextLinein interfaceHologram- Parameters:
text- TheStringto display- Returns:
- The
TextLinecreated
-
getVisibilityManager
Description copied from interface:HologramGet theVisibilityManagerfor theHologram- Specified by:
getVisibilityManagerin interfaceHologram- Returns:
- The
VisibilityManager
-
getLocation
public org.bukkit.Location getLocation()Description copied from interface:HologramGet theHolograms currentLocation- Specified by:
getLocationin interfaceHologram- Returns:
- The
Location
-
teleport
public void teleport(org.bukkit.Location location) Description copied from interface:HologramTeleport theHologramto a different location -
delete
public void delete()Description copied from interface:HologramDelete theHologram, and all attached entities -
size
public int size()Description copied from interface:HologramGet the size of all the attachedLines -
getHologramAsObject
Description copied from interface:Hologram- Specified by:
getHologramAsObjectin interfaceHologram- Returns:
- The
Object
-
getId
-
getExtra
-