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

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

Best Java code snippets using com.gmail.filoghost.holographicdisplays.api.Hologram.getX (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.apiHologramgetX

Javadoc

Returns the X 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
  • getY
  • getZ

Popular in Java

  • Updating database using SQL prepared statement
  • setRequestProperty (URLConnection)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • runOnUiThread (Activity)
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Best plugins for Eclipse
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