Tabnine Logo
HologramsAPI.createHologram
Code IndexAdd Tabnine to your IDE (free)

How to use
createHologram
method
in
com.gmail.filoghost.holographicdisplays.api.HologramsAPI

Best Java code snippets using com.gmail.filoghost.holographicdisplays.api.HologramsAPI.createHologram (Showing top 8 results out of 315)

origin: filoghost/HolographicDisplays

  @EventHandler
  public void onPlayerDeath(PlayerDeathEvent event) {
    
    Hologram hologram = HologramsAPI.createHologram(this, event.getEntity().getEyeLocation());
    
    hologram.appendTextLine(ChatColor.RED + "Player " + ChatColor.GOLD + event.getEntity().getName() + ChatColor.RED + " died here!");
    hologram.appendTextLine(ChatColor.GRAY + "Time of death: " + new SimpleDateFormat("H:m").format(new Date()));
    
  }
}
origin: BedwarsRel/BedwarsRel

private Hologram createPlayerStatisticHologram(Player player, Location holoLocation) {
 final Hologram holo = HologramsAPI.createHologram(BedwarsRel.getInstance(), holoLocation);
 holo.getVisibilityManager().setVisibleByDefault(false);
 holo.getVisibilityManager().showTo(player);
 this.updatePlayerStatisticHologram(player, holo);
 return holo;
}
origin: io.github.bedwarsrel/BedwarsRel-Common

private Hologram createPlayerStatisticHologram(Player player, Location holoLocation) {
 final Hologram holo = HologramsAPI.createHologram(BedwarsRel.getInstance(), holoLocation);
 holo.getVisibilityManager().setVisibleByDefault(false);
 holo.getVisibilityManager().showTo(player);
 this.updatePlayerStatisticHologram(player, holo);
 return holo;
}
origin: DRE2N/DungeonsXL

@Override
public void onInit() {
  if (Bukkit.getPluginManager().getPlugin("HolographicDisplays") == null) {
    markAsErroneous("HolographicDisplays not enabled");
    return;
  }
  getSign().getBlock().setType(VanillaItem.AIR.getMaterial());
  String[] holoLines = lines[1].split("/");
  Location location = getSign().getLocation();
  location = location.add(0.5, NumberUtil.parseDouble(lines[2]), 0.5);
  hologram = HologramsAPI.createHologram(plugin, location);
  for (String line : holoLines) {
    if (line.startsWith("Item:")) {
      String id = line.replace("Item:", "");
      ItemStack item = null;
      ExItem exItem = plugin.getCaliburn().getExItem(id);
      if (exItem != null) {
        item = exItem.toItemStack();
      }
      hologram.appendItemLine(item);
    } else {
      hologram.appendTextLine(ChatColor.translateAlternateColorCodes('&', line));
    }
  }
}
origin: filoghost/HolographicDisplays

final Hologram hologram = HologramsAPI.createHologram(this, event.getEntity().getLocation().add(0.0, 0.9, 0.0));
hologram.appendTextLine(ChatColor.AQUA  + "" + ChatColor.BOLD + "Speed PowerUp");
ItemLine icon = hologram.appendItemLine(new ItemStack(Material.SUGAR));
origin: DRE2N/DungeonsXL

public DGroupTag(DungeonsXL plugin, DGamePlayer player) {
  this.player = player;
  DGroup group = player.getDGroup();
  if (group != null) {
    hologram = HologramsAPI.createHologram(plugin, player.getPlayer().getLocation().clone().add(0, 3.5, 0));
    hologram.appendItemLine(group.getDColor().getWoolMaterial().toItemStack());
    hologram.appendTextLine(group.getName());
  }
}
origin: Co0sh/BetonQuest

  continue;
Hologram hologram = HologramsAPI.createHologram(BetonQuest.getInstance(), location);
hologram.getVisibilityManager().setVisibleByDefault(false);
for (String line : lines) {
origin: Co0sh/BetonQuest

hologramEnabled = true;
if (npcHologram.hologram == null) {
  Hologram hologram = HologramsAPI.createHologram(BetonQuest.getInstance(), npc.getStoredLocation().add(npcHologram.config.vector));
  hologram.getVisibilityManager().setVisibleByDefault(false);
  for (String line : npcHologram.config.settings.getStringList("lines")) {
com.gmail.filoghost.holographicdisplays.apiHologramsAPIcreateHologram

Javadoc

Creates a hologram at given location.

Popular methods of HologramsAPI

  • getHolograms
  • isHologramEntity
    Checks if an entity is part of a hologram.

Popular in Java

  • Finding current android device location
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • startActivity (Activity)
  • getResourceAsStream (ClassLoader)
  • Kernel (java.awt.image)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now