Interface Facet.BossBarPacket<V>

Type Parameters:
V - a viewer type
All Superinterfaces:
AutoCloseable, BossBar.Listener, Closeable, Facet.BossBar<V>
Enclosing interface:
Facet<V>

public static interface Facet.BossBarPacket<V> extends Facet.BossBar<V>
A facet that listens to boss bar changes, using packets.
Since:
4.0.0
  • Field Details

  • Method Details

    • createColor

      default int createColor(@NotNull BossBar.Color color)
      Creates a color.
      Parameters:
      color - a color
      Returns:
      an ordinal
      Since:
      4.0.0
    • createOverlay

      default int createOverlay(@NotNull BossBar.Overlay overlay)
      Creates an overlay.
      Parameters:
      overlay - an overlay
      Returns:
      an ordinal
      Since:
      4.0.0
    • createFlag

      default byte createFlag(byte flagBit, @NotNull @NotNull Set<BossBar.Flag> flagsAdded, @NotNull @NotNull Set<BossBar.Flag> flagsRemoved)
      Creates a bit flag.
      Parameters:
      flagBit - a flag bit
      flagsAdded - a set of added flags
      flagsRemoved - a set of removed flags
      Returns:
      an ordinal
      Since:
      4.0.0