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

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

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

origin: io.github.bedwarsrel/BedwarsRel-Common

public void unloadAllHolograms(Player player) {
 if (!this.holograms.containsKey(player)) {
  return;
 }
 for (Hologram holo : this.holograms.get(player)) {
  holo.delete();
 }
 this.holograms.remove(player);
}
origin: BedwarsRel/BedwarsRel

public void unloadAllHolograms(Player player) {
 if (!this.holograms.containsKey(player)) {
  return;
 }
 for (Hologram holo : this.holograms.get(player)) {
  holo.delete();
 }
 this.holograms.remove(player);
}
origin: Co0sh/BetonQuest

/**
 * Cancels hologram updating loop and removes all BetonQuest-registered holograms.
 */
public void cancel() {
  if (runnable == null)
    return;
  runnable.cancel();
  for (Hologram hologram : holograms.keySet()) {
    hologram.delete();
  }
}
origin: Co0sh/BetonQuest

private void cleanUp() {
  // Cancel Updater
  if (updater != null) {
    updater.cancel();
    updater = null;
  }
  // Destroy all holograms
  for (NPC npc : npcs.keySet()) {
    for (NPCHologram npcHologram : npcs.get(npc)) {
      if (npcHologram.hologram != null) {
        npcHologram.hologram.delete();
        npcHologram.hologram = null;
      }
    }
  }
}
origin: io.github.bedwarsrel/BedwarsRel-Common

public void unloadHolograms() {
 if (BedwarsRel.getInstance().isHologramsEnabled()) {
  Iterator<Hologram> iterator = HologramsAPI.getHolograms(BedwarsRel.getInstance()).iterator();
  while (iterator.hasNext()) {
   iterator.next().delete();
  }
 }
}
origin: BedwarsRel/BedwarsRel

public void unloadHolograms() {
 if (BedwarsRel.getInstance().isHologramsEnabled()) {
  Iterator<Hologram> iterator = HologramsAPI.getHolograms(BedwarsRel.getInstance()).iterator();
  while (iterator.hasNext()) {
   iterator.next().delete();
  }
 }
}
origin: BedwarsRel/BedwarsRel

private void updatePlayerHologram(Player player, Location holoLocation) {
 List<Hologram> holograms = null;
 if (!this.holograms.containsKey(player)) {
  this.holograms.put(player, new ArrayList<Hologram>());
 }
 holograms = this.holograms.get(player);
 Hologram holo = this.getHologramByLocation(holograms, holoLocation);
 if (holo == null && player.getWorld() == holoLocation.getWorld()) {
  holograms.add(this.createPlayerStatisticHologram(player, holoLocation));
 } else if (holo != null) {
  if (holo.getLocation().getWorld() == player.getWorld()) {
   this.updatePlayerStatisticHologram(player, holo);
  } else {
   holograms.remove(holo);
   holo.delete();
  }
 }
}
origin: io.github.bedwarsrel/BedwarsRel-Common

private void updatePlayerHologram(Player player, Location holoLocation) {
 List<Hologram> holograms = null;
 if (!this.holograms.containsKey(player)) {
  this.holograms.put(player, new ArrayList<Hologram>());
 }
 holograms = this.holograms.get(player);
 Hologram holo = this.getHologramByLocation(holograms, holoLocation);
 if (holo == null && player.getWorld() == holoLocation.getWorld()) {
  holograms.add(this.createPlayerStatisticHologram(player, holoLocation));
 } else if (holo != null) {
  if (holo.getLocation().getWorld() == player.getWorld()) {
   this.updatePlayerStatisticHologram(player, holo);
  } else {
   holograms.remove(holo);
   holo.delete();
  }
 }
}
origin: filoghost/HolographicDisplays

  @Override
  public void onPickup(Player player) {
    
    // Play an effect.
    player.playEffect(hologram.getLocation(), Effect.MOBSPAWNER_FLAMES, null);
    
    // 30 seconds of speed II.
    player.addPotionEffect(new PotionEffect(PotionEffectType.SPEED, 30 * 20, 1), true);
    
    // Delete the hologram.
    hologram.delete();
    
  }
});
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")));
}
origin: Co0sh/BetonQuest

npcHologram.hologram.delete();
npcHologram.hologram = null;
com.gmail.filoghost.holographicdisplays.apiHologramdelete

Javadoc

Deletes this hologram. Editing or teleporting the hologram when deleted will throw an exception. Lines will be automatically cleared. You should remove all the references of the hologram after deletion.

Popular methods of Hologram

  • appendTextLine
  • appendItemLine
    Appends an item line to end of this hologram.
  • getVisibilityManager
  • getLocation
  • teleport
    Teleports a hologram to the given location.
  • clearLines
  • getX
  • 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
  • Top PhpStorm plugins
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