Class WrapperPlayServerBoss
java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.clientbound.WrapperPlayServerBoss
Sent by server to client to control boss bars.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static class
Wrapped for operation to create a new boss barstatic interface
Wraps an abstract boss bar operationstatic class
Operation to update the progress of the boss bar on client sidestatic class
Operation to remove the boss bar on client sidestatic class
Operation to update the boss bar name on client sidestatic class
Operation to update flags of the boss barstatic class
Option to update the style of the boss bar -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.comphenix.protocol.PacketType
The packet type that is wrapped by this wrapper.Fields inherited from class com.comphenix.packetwrapper.wrappers.AbstractPacket
handle
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new wrapper and initialize it with a packet handle with default valuesWrapperPlayServerBoss
(com.comphenix.protocol.events.PacketContainer packet) Constructors a new wrapper for the specified packet -
Method Summary
Modifier and TypeMethodDescriptiongetId()
Retrieves the unique id of this barRetrieves the current operation.void
Sets the unique id of this barvoid
Sets the operation of this packet.Methods inherited from class com.comphenix.packetwrapper.wrappers.AbstractPacket
broadcastPacket, equals, getHandle, hashCode, receivePacket, sendPacket
-
Field Details
-
TYPE
public static final com.comphenix.protocol.PacketType TYPEThe packet type that is wrapped by this wrapper.
-
-
Constructor Details
-
WrapperPlayServerBoss
public WrapperPlayServerBoss()Constructs a new wrapper and initialize it with a packet handle with default values -
WrapperPlayServerBoss
public WrapperPlayServerBoss(com.comphenix.protocol.events.PacketContainer packet) Constructors a new wrapper for the specified packet- Parameters:
packet
- the packet to wrap
-
-
Method Details
-
getId
Retrieves the unique id of this bar- Returns:
- 'id'
-
setId
Sets the unique id of this bar- Parameters:
value
- New value for field 'id'
-
getOperation
Retrieves the current operation. The operation is a mutable copy of the underlying operation. Thus, any changes to it need to be explicitly written back using . The operation can be casted to any of specific operation types (e.g. ) based on its type ().- Returns:
- mutable copy as a wrapper for the operation
-
setOperation
Sets the operation of this packet. Can be any of the following operation types:- Parameters:
value
- New value for field 'operation'- See Also:
-
WrapperPlayServerBoss.WrappedBossBarAddOperation.create(WrappedChatComponent, float, BarColor, BarStyle, boolean, boolean, boolean)
WrapperPlayServerBoss.WrappedBossBarRemoveOperation.create()
WrapperPlayServerBoss.WrappedBossBarProgressOperation.create(float)
WrapperPlayServerBoss.WrappedBossBarUpdatePropertiesOperation.create(boolean, boolean, boolean)
WrapperPlayServerBoss.WrappedBossBarUpdateStyleOperation.create(BarColor, BarStyle)
WrapperPlayServerBoss.WrappedBossBarUpdateNameOperation.create(WrappedChatComponent)
-