congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Hologram.getZ
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: BedwarsRel/BedwarsRel

@Override
public void run() {
 // remove all player holograms on this location
 for (Entry<Player, List<Hologram>> entry : HolographicDisplaysInteraction.this
   .getHolograms().entrySet()) {
  Iterator<Hologram> iterator = entry.getValue().iterator();
  while (iterator.hasNext()) {
   Hologram hologram = iterator.next();
   if (hologram.getX() == holo.getX() && hologram.getY() == holo.getY()
     && hologram.getZ() == holo.getZ()) {
    hologram.delete();
    iterator.remove();
   }
  }
 }
 Location holoLocation =
   HolographicDisplaysInteraction.this
     .getHologramLocationByLocation(holo.getLocation());
 if (holoLocation != null) {
  HolographicDisplaysInteraction.this.hologramLocations.remove(holoLocation);
  HolographicDisplaysInteraction.this.updateHologramDatabase();
 }
 player.sendMessage(
   ChatWriter.pluginMessage(ChatColor.GREEN + BedwarsRel._l("success.holoremoved")));
}
origin: io.github.bedwarsrel/BedwarsRel-Common

@Override
public void run() {
 // remove all player holograms on this location
 for (Entry<Player, List<Hologram>> entry : HolographicDisplaysInteraction.this
   .getHolograms().entrySet()) {
  Iterator<Hologram> iterator = entry.getValue().iterator();
  while (iterator.hasNext()) {
   Hologram hologram = iterator.next();
   if (hologram.getX() == holo.getX() && hologram.getY() == holo.getY()
     && hologram.getZ() == holo.getZ()) {
    hologram.delete();
    iterator.remove();
   }
  }
 }
 Location holoLocation =
   HolographicDisplaysInteraction.this
     .getHologramLocationByLocation(holo.getLocation());
 if (holoLocation != null) {
  HolographicDisplaysInteraction.this.hologramLocations.remove(holoLocation);
  HolographicDisplaysInteraction.this.updateHologramDatabase();
 }
 player.sendMessage(
   ChatWriter.pluginMessage(ChatColor.GREEN + BedwarsRel._l("success.holoremoved")));
}
com.gmail.filoghost.holographicdisplays.apiHologramgetZ

Javadoc

Returns the Z coordinate.

Popular methods of Hologram

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

Popular in Java

  • Parsing JSON documents to java classes using gson
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • requestLocationUpdates (LocationManager)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Collectors (java.util.stream)
  • Notification (javax.management)
  • Top 12 Jupyter Notebook extensions
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