Codota Logo
HologramsAPI.createHologram
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
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

  • Parsing JSON documents to java classes using gson
  • addToBackStack (FragmentTransaction)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • findViewById (Activity)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • JLabel (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now