public static enum BossEventPacket.Type extends Enum<BossEventPacket.Type>
| Enum Constant and Description |
|---|
DARKEN_SKY
Darken the sky when the boss bar is shown.
|
HEALTH_PERCENTAGE
Appears not to be implemented.
|
HIDE
Removes the bossbar from the client.
|
OVERLAY
Not implemented :( Intended to alter bar appearance, but these currently produce no effect on clientside whatsoever.
|
REGISTER_PLAYER
Registers a player to a boss fight.
|
SHOW
Shows the bossbar to the player.
|
TITLE
Also appears to not be implemented.
|
UNREGISTER_PLAYER
Unregisters a player from a boss fight.
|
| Modifier and Type | Method and Description |
|---|---|
static BossEventPacket.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BossEventPacket.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BossEventPacket.Type SHOW
public static final BossEventPacket.Type REGISTER_PLAYER
public static final BossEventPacket.Type HIDE
public static final BossEventPacket.Type UNREGISTER_PLAYER
public static final BossEventPacket.Type HEALTH_PERCENTAGE
public static final BossEventPacket.Type TITLE
public static final BossEventPacket.Type DARKEN_SKY
public static final BossEventPacket.Type OVERLAY
public static BossEventPacket.Type[] values()
for (BossEventPacket.Type c : BossEventPacket.Type.values()) System.out.println(c);
public static BossEventPacket.Type valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2018–2019 NukkitX. All rights reserved.