Codota Logo
Hologram.delete
Code IndexAdd Codota 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)

  • 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: 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
  • runOnUiThread (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • 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
  • Path (java.nio.file)
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
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