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) boolean
org.bukkit.boss.BarColor
getColor()
Gets the color of the boss barcom.comphenix.protocol.wrappers.WrappedChatComponent
getName()
Gets the text of the boss barorg.bukkit.boss.BarStyle
Gets the overlay typefloat
Gets the progress/health of the boss bargetType()
int
hashCode()
boolean
boolean
boolean
void
setColor
(org.bukkit.boss.BarColor color) Sets the color of the boss barvoid
setCreateWorldFog
(boolean createWorldFog) void
setDarkenScreen
(boolean darkenScreen) void
setName
(com.comphenix.protocol.wrappers.WrappedChatComponent name) Sets the text of the boss barvoid
setOverlay
(org.bukkit.boss.BarStyle overlay) void
setPlayMusic
(boolean playMusic) void
setProgress
(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:
getType
in interfaceWrapperPlayServerBoss.WrappedBossBarOperation
-
equals
-
hashCode
public int hashCode()
-