Interface Visibility<T>

Type Parameters:
T - the type of the viewer
All Known Subinterfaces:
PlayerVisibility
All Known Implementing Classes:
DHHologram, FHHologram, HDHologram, HDLegacyHologram

public interface Visibility<T>
An extra interface for Hologram to control the visibility of the hologram
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Hide the hologram from all viewers
    void
    hideTo(T viewer)
    Hide the hologram from the viewer
    boolean
    isVisible(T viewer)
    Check if the viewer can see the hologram
    void
    Show the hologram to all viewers
    void
    showTo(T viewer)
    Show the hologram to the viewer
  • Method Details

    • isVisible

      boolean isVisible(T viewer)
      Check if the viewer can see the hologram
      Parameters:
      viewer - the viewer
      Returns:
      true if the viewer can see the hologram
    • showAll

      void showAll()
      Show the hologram to all viewers
    • hideAll

      void hideAll()
      Hide the hologram from all viewers
    • showTo

      void showTo(T viewer)
      Show the hologram to the viewer
      Parameters:
      viewer - the viewer
    • hideTo

      void hideTo(T viewer)
      Hide the hologram from the viewer
      Parameters:
      viewer - the viewer