Codota Logo
Hologram.getVisibilityManager
Code IndexAdd Codota to your IDE (free)

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

Best Java code snippets using com.gmail.filoghost.holographicdisplays.api.Hologram.getVisibilityManager (Showing top 8 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: Co0sh/BetonQuest

  @Override
  public void run() {
    if (npcHologram.hologram != null) {
      npcHologram.hologram.getVisibilityManager().showTo(player);
    }
  }
},2);
origin: Co0sh/BetonQuest

  @Override
  public void run() {
    if (npcHologram.hologram != null) {
      npcHologram.hologram.getVisibilityManager().hideTo(player);
    }
  }
},2);
origin: Co0sh/BetonQuest

  @Override
  public void run() {
    for (Player player : Bukkit.getOnlinePlayers()) {
      String playerID = PlayerConverter.getID(player);
      holograms:
      for (Entry<Hologram, ConditionID[]> entry : holograms.entrySet()) {
        for (ConditionID condition : entry.getValue()) {
          if (!BetonQuest.condition(playerID, condition)) {
            entry.getKey().getVisibilityManager().hideTo(player);
            continue holograms;
          }
        }
        entry.getKey().getVisibilityManager().showTo(player);
      }
    }
  }
};
origin: io.github.bedwarsrel/BedwarsRel-Common

private Hologram createPlayerStatisticHologram(Player player, Location holoLocation) {
 final Hologram holo = HologramsAPI.createHologram(BedwarsRel.getInstance(), holoLocation);
 holo.getVisibilityManager().setVisibleByDefault(false);
 holo.getVisibilityManager().showTo(player);
 this.updatePlayerStatisticHologram(player, holo);
 return holo;
}
origin: BedwarsRel/BedwarsRel

private Hologram createPlayerStatisticHologram(Player player, Location holoLocation) {
 final Hologram holo = HologramsAPI.createHologram(BedwarsRel.getInstance(), holoLocation);
 holo.getVisibilityManager().setVisibleByDefault(false);
 holo.getVisibilityManager().showTo(player);
 this.updatePlayerStatisticHologram(player, holo);
 return holo;
}
origin: filoghost/HolographicDisplays

@Override
public void handleItemLinePickup(Player player, PickupHandler pickupHandler, Hologram hologram) {
  try {
    if (hologram.getVisibilityManager().isVisibleTo(player)) {
      pickupHandler.onPickup(player);
    }
  } catch (Throwable t) {
    Plugin plugin = hologram instanceof PluginHologram ? ((PluginHologram) hologram).getOwner() : HolographicDisplays.getInstance();
    ConsoleLogger.log(Level.WARNING, "The plugin " + plugin.getName() + " generated an exception when the player " + player.getName() + " picked up an item from a hologram.", t);
  }
}
 
origin: Co0sh/BetonQuest

hologram.getVisibilityManager().setVisibleByDefault(false);
for (String line : lines) {
origin: Co0sh/BetonQuest

if (npcHologram.hologram == null) {
  Hologram hologram = HologramsAPI.createHologram(BetonQuest.getInstance(), npc.getStoredLocation().add(npcHologram.config.vector));
  hologram.getVisibilityManager().setVisibleByDefault(false);
  for (String line : npcHologram.config.settings.getStringList("lines")) {
    if (line.startsWith("item:")) {
com.gmail.filoghost.holographicdisplays.apiHologramgetVisibilityManager

Javadoc

Returns the VisibilityManager of this hologram.
Note: the usage of the VisibilityManager requires ProtocolLib. Without the plugin, holograms will be always visible.

Popular methods of Hologram

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

Popular in Java

  • Running tasks concurrently on multiple threads
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • onRequestPermissionsResult (Fragment)
  • notifyDataSetChanged (ArrayAdapter)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Iterator (java.util)
    An iterator over a collection. Iterator takes the place of Enumeration in the Java Collections Frame
  • Notification (javax.management)
  • JList (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
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