Repository navigation
HologramManager
DarthBoomerPlay edited this page Mar 28, 2020
·
1 revision
This utility will help create holograms.
Version Support: 1.8 - 1.15.1
// Functions
List<String> getLines() // get lines hologram
Location getLocation() // get location
Clickable<Player> getClickAction() // get ClickAction
int getLineCount() // get line count
String getLine(int paramInt) // get line
void addLine(String paramString) // add line
void modifyLine(int paramInt, String paramString) // modify line
void spawn() // show ALL PLAYER from hologram
void addReceiver(Player paramPlayer) // show PLAYER from hologram
void remove() // remove hologram
void removeReceiver(Player paramPlayer) // remove player from hologram
void setLocation(Location paramLocation) // set hologram location
void setClickAction(Clickable<Player> paramClickable) // set Click action
void refreshHologram() // refresh hologram
// Example to usage:
DCore.getHologramManager().createHologram("testHologram", location, hologram -> {
hologram.addLine("Welcome to my server!");
hologram.addLine("");
hologram.addLine("DarthCore by DarthBoomerPlay_");
hologram.addLine("Discord: DarthBoomerPlay#6534");
hologram.setClickAction(player -> {
player.sendMessage("Discord: DarthBoomerPlay#6534");
player.sendMessage("VK: vk.com/darthboomerplay");
});
hologram.spawn();
});PlayerUtils
ProgressBar
ScoreboardUtils
ItemUtils
DateUtils
ConfigAPI
BannerAPI
SchedularManager
RegionManager
HologramManager
MySQLManager
InventoryManager\
Discord: DarthBoomerPlay#6534
VK: vk.com/darthboomerplay