public class BossBarS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Modifier and Type | Class and Description |
---|---|
static class |
BossBarS2CPacket.Type |
Modifier and Type | Field and Description |
---|---|
private BossBar.Color |
color |
private boolean |
darkenSky |
private boolean |
dragonMusic |
private Text |
name |
private BossBar.Style |
overlay |
private float |
percent |
private boolean |
thickenFog |
private BossBarS2CPacket.Type |
type |
private UUID |
uuid |
Constructor and Description |
---|
BossBarS2CPacket() |
BossBarS2CPacket(BossBarS2CPacket.Type action,
BossBar bossBar) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
BossBar.Color |
getColor() |
private int |
getFlagBitfield() |
Text |
getName() |
BossBar.Style |
getOverlay() |
float |
getPercent() |
BossBarS2CPacket.Type |
getType() |
UUID |
getUuid() |
boolean |
hasDragonMusic() |
void |
read(PacketByteBuf buf) |
private void |
setFlagBitfield(int int2) |
boolean |
shouldDarkenSky() |
boolean |
shouldThickenFog() |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
private UUID uuid
private BossBarS2CPacket.Type type
private Text name
private float percent
private BossBar.Color color
private BossBar.Style overlay
private boolean darkenSky
private boolean dragonMusic
private boolean thickenFog
public BossBarS2CPacket()
public BossBarS2CPacket(BossBarS2CPacket.Type action, BossBar bossBar)
public void read(PacketByteBuf buf) throws IOException
read
in interface Packet<ClientPlayPacketListener>
IOException
private void setFlagBitfield(int int2)
public void write(PacketByteBuf buf) throws IOException
write
in interface Packet<ClientPlayPacketListener>
IOException
private int getFlagBitfield()
public void apply(ClientPlayPacketListener clientPlayPacketListener)
apply
in interface Packet<ClientPlayPacketListener>
@Environment(value=CLIENT) public UUID getUuid()
@Environment(value=CLIENT) public BossBarS2CPacket.Type getType()
@Environment(value=CLIENT) public Text getName()
@Environment(value=CLIENT) public float getPercent()
@Environment(value=CLIENT) public BossBar.Color getColor()
@Environment(value=CLIENT) public BossBar.Style getOverlay()
@Environment(value=CLIENT) public boolean shouldDarkenSky()
@Environment(value=CLIENT) public boolean hasDragonMusic()
@Environment(value=CLIENT) public boolean shouldThickenFog()