Class WrapperPlayServerBoss.WrappedBossBarAddOperation

java.lang.Object
com.comphenix.packetwrapper.wrappers.play.clientbound.WrapperPlayServerBoss.WrappedBossBarAddOperation
All Implemented Interfaces:
WrapperPlayServerBoss.WrappedBossBarOperation
Enclosing class:
WrapperPlayServerBoss

public static class WrapperPlayServerBoss.WrappedBossBarAddOperation extends Object implements WrapperPlayServerBoss.WrappedBossBarOperation
Wrapped for operation to create a new boss bar
  • Constructor Details

    • WrappedBossBarAddOperation

      public WrappedBossBarAddOperation()
  • Method Details

    • create

      public static WrapperPlayServerBoss.WrappedBossBarAddOperation create(com.comphenix.protocol.wrappers.WrappedChatComponent name, float progress, org.bukkit.boss.BarColor color, org.bukkit.boss.BarStyle overlay, boolean darkenScreen, boolean playMusic, boolean createWorldFog)
    • getName

      public com.comphenix.protocol.wrappers.WrappedChatComponent getName()
      Gets the text of the boss bar
      Returns:
      text of boss bar
    • setName

      public void setName(com.comphenix.protocol.wrappers.WrappedChatComponent name)
      Sets the text of the boss bar
      Parameters:
      name - new boss bar text
    • getProgress

      public float getProgress()
      Gets the progress/health of the boss bar
      Returns:
      progress in range between 0.0 and 1.0 inclusive
    • setProgress

      public void setProgress(float progress)
      Sets the progress/health of the boss bar
      Parameters:
      progress - progress in range between 0.0 and 1.0 inclusive
    • getColor

      public org.bukkit.boss.BarColor getColor()
      Gets the color of the boss bar
      Returns:
      color of boss bar
    • setColor

      public void setColor(org.bukkit.boss.BarColor color)
      Sets the color of the boss bar
      Parameters:
      color - new color
    • getOverlay

      public org.bukkit.boss.BarStyle getOverlay()
      Gets the overlay type
      Returns:
      overlay type
    • setOverlay

      public void setOverlay(org.bukkit.boss.BarStyle overlay)
    • isDarkenScreen

      public boolean isDarkenScreen()
    • setDarkenScreen

      public void setDarkenScreen(boolean darkenScreen)
    • isPlayMusic

      public boolean isPlayMusic()
    • setPlayMusic

      public void setPlayMusic(boolean playMusic)
    • isCreateWorldFog

      public boolean isCreateWorldFog()
    • setCreateWorldFog

      public void setCreateWorldFog(boolean createWorldFog)
    • getType

      Specified by:
      getType in interface WrapperPlayServerBoss.WrappedBossBarOperation
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object