Codota Logo
Hologram.appendTextLine
Code IndexAdd Codota to your IDE (free)

How to use
appendTextLine
method
in
com.gmail.filoghost.holographicdisplays.api.Hologram

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • 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: 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

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

  hologram.appendItemLine(new ItemStack(Material.matchMaterial(line.substring(5))));
} else {
  hologram.appendTextLine(line.replace('&', '§'));
origin: Co0sh/BetonQuest

  hologram.appendItemLine(new ItemStack(Material.matchMaterial(line.substring(5))));
} else {
  hologram.appendTextLine(line.replace('&', '§'));
origin: io.github.bedwarsrel/BedwarsRel-Common

TextLine textLine = holo.appendTextLine(line);
textLine.setTouchHandler(new TouchHandler() {
origin: BedwarsRel/BedwarsRel

TextLine textLine = holo.appendTextLine(line);
textLine.setTouchHandler(new TouchHandler() {
com.gmail.filoghost.holographicdisplays.apiHologramappendTextLine

Javadoc

Appends a text line to end of this hologram.

Popular methods of Hologram

  • appendItemLine
    Appends an item line to end of this hologram.
  • delete
  • getVisibilityManager
  • getLocation
  • teleport
    Teleports a hologram to the given location.
  • clearLines
  • getX
  • getY
  • getZ

Popular in Java

  • Parsing JSON documents to java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • requestLocationUpdates (LocationManager)
  • findViewById (Activity)
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • JComboBox (javax.swing)
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