Tabnine Logo
Hologram.appendItemLine
Code IndexAdd Tabnine to your IDE (free)

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

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

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

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

for (String line : npcHologram.config.settings.getStringList("lines")) {
  if (line.startsWith("item:")) {
    hologram.appendItemLine(new ItemStack(Material.matchMaterial(line.substring(5))));
  } else {
    hologram.appendTextLine(line.replace('&', '§'));
com.gmail.filoghost.holographicdisplays.apiHologramappendItemLine

Javadoc

Appends an item line to end of this hologram.

Popular methods of Hologram

  • appendTextLine
  • delete
  • getVisibilityManager
  • getLocation
  • teleport
    Teleports a hologram to the given location.
  • clearLines
  • getX
  • getY
  • getZ

Popular in Java

  • Running tasks concurrently on multiple threads
  • notifyDataSetChanged (ArrayAdapter)
  • onCreateOptionsMenu (Activity)
  • addToBackStack (FragmentTransaction)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Notification (javax.management)
  • JTextField (javax.swing)
  • Top plugins for WebStorm
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