public class Hologram extends Object
Constructor and Description |
---|
Hologram(ShopChest plugin,
String[] lines,
org.bukkit.Location location) |
Modifier and Type | Method and Description |
---|---|
void |
addLine(int line,
String text) |
boolean |
contains(org.bukkit.entity.ArmorStand armorStand) |
boolean |
exists() |
List<ArmorStandWrapper> |
getArmorStandWrappers()
Returns the ArmorStandWrappers of this hologram
|
static Hologram |
getHologram(org.bukkit.entity.ArmorStand armorStand) |
ArmorStandWrapper |
getInteractArmorStandWrapper()
Returns the ArmorStandWrapper of this hologram that is positioned higher to be used for interaction
|
String[] |
getLines() |
org.bukkit.Location |
getLocation() |
void |
hidePlayer(org.bukkit.entity.Player p) |
static boolean |
isPartOfHologram(org.bukkit.entity.ArmorStand armorStand) |
boolean |
isVisible(org.bukkit.entity.Player p) |
void |
remove()
Removes the hologram.
|
void |
removeLine(int line) |
void |
setLine(int line,
String text) |
void |
showPlayer(org.bukkit.entity.Player p) |
public void addLine(int line, String text)
public void setLine(int line, String text)
public void removeLine(int line)
public String[] getLines()
public org.bukkit.Location getLocation()
public void showPlayer(org.bukkit.entity.Player p)
p
- Player to which the hologram should be shownpublic void hidePlayer(org.bukkit.entity.Player p)
p
- Player from which the hologram should be hiddenpublic boolean isVisible(org.bukkit.entity.Player p)
p
- Player to checkpublic boolean exists()
public boolean contains(org.bukkit.entity.ArmorStand armorStand)
armorStand
- Armor stand to checkpublic List<ArmorStandWrapper> getArmorStandWrappers()
public ArmorStandWrapper getInteractArmorStandWrapper()
public void remove()
public static Hologram getHologram(org.bukkit.entity.ArmorStand armorStand)
armorStand
- Armor stand that's part of a hologrampublic static boolean isPartOfHologram(org.bukkit.entity.ArmorStand armorStand)
armorStand
- Armor stand to checkCopyright © 2017. All rights reserved.