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
-
Field Summary
Fields inherited from interface com.comphenix.packetwrapper.wrappers.play.clientbound.WrapperPlayServerBoss.WrappedBossBarOperation
HANDLE_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(com.comphenix.protocol.wrappers.WrappedChatComponent name, float progress, org.bukkit.boss.BarColor color, org.bukkit.boss.BarStyle overlay, boolean darkenScreen, boolean playMusic, boolean createWorldFog) booleanorg.bukkit.boss.BarColorgetColor()Gets the color of the boss barcom.comphenix.protocol.wrappers.WrappedChatComponentgetName()Gets the text of the boss barorg.bukkit.boss.BarStyleGets the overlay typefloatGets the progress/health of the boss bargetType()inthashCode()booleanbooleanbooleanvoidsetColor(org.bukkit.boss.BarColor color) Sets the color of the boss barvoidsetCreateWorldFog(boolean createWorldFog) voidsetDarkenScreen(boolean darkenScreen) voidsetName(com.comphenix.protocol.wrappers.WrappedChatComponent name) Sets the text of the boss barvoidsetOverlay(org.bukkit.boss.BarStyle overlay) voidsetPlayMusic(boolean playMusic) voidsetProgress(float progress) Sets the progress/health of the 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:
getTypein interfaceWrapperPlayServerBoss.WrappedBossBarOperation
-
equals
-
hashCode
public int hashCode()
-