Tabnine Logo
Hologram.getVisibilityManager
Code IndexAdd Tabnine 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)

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

  • Start an intent from android
  • getSystemService (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • setScale (BigDecimal)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • JCheckBox (javax.swing)
  • Best IntelliJ 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