public class SPacketUpdateBossInfo extends java.lang.Object implements Packet<INetHandlerPlayClient>
Modifier and Type | Class and Description |
---|---|
static class |
SPacketUpdateBossInfo.Operation |
Modifier and Type | Field and Description |
---|---|
private BossInfo.Color |
color |
private boolean |
createFog |
private boolean |
darkenSky |
private ITextComponent |
name |
private SPacketUpdateBossInfo.Operation |
operation |
private BossInfo.Overlay |
overlay |
private float |
percent |
private boolean |
playEndBossMusic |
private java.util.UUID |
uniqueId |
Constructor and Description |
---|
SPacketUpdateBossInfo() |
SPacketUpdateBossInfo(SPacketUpdateBossInfo.Operation operationIn,
BossInfo data) |
Modifier and Type | Method and Description |
---|---|
BossInfo.Color |
getColor() |
private int |
getFlags() |
ITextComponent |
getName() |
SPacketUpdateBossInfo.Operation |
getOperation() |
BossInfo.Overlay |
getOverlay() |
float |
getPercent() |
java.util.UUID |
getUniqueId() |
void |
processPacket(INetHandlerPlayClient handler) |
void |
readPacketData(PacketBuffer buf) |
private void |
setFlags(int flags) |
boolean |
shouldCreateFog() |
boolean |
shouldDarkenSky() |
boolean |
shouldPlayEndBossMusic() |
void |
writePacketData(PacketBuffer buf) |
private java.util.UUID uniqueId
private SPacketUpdateBossInfo.Operation operation
private ITextComponent name
private float percent
private BossInfo.Color color
private BossInfo.Overlay overlay
private boolean darkenSky
private boolean playEndBossMusic
private boolean createFog
public SPacketUpdateBossInfo()
public SPacketUpdateBossInfo(SPacketUpdateBossInfo.Operation operationIn, BossInfo data)
public void readPacketData(PacketBuffer buf) throws java.io.IOException
readPacketData
in interface Packet<INetHandlerPlayClient>
java.io.IOException
private void setFlags(int flags)
public void writePacketData(PacketBuffer buf) throws java.io.IOException
writePacketData
in interface Packet<INetHandlerPlayClient>
java.io.IOException
private int getFlags()
public void processPacket(INetHandlerPlayClient handler)
processPacket
in interface Packet<INetHandlerPlayClient>
public java.util.UUID getUniqueId()
public SPacketUpdateBossInfo.Operation getOperation()
public ITextComponent getName()
public float getPercent()
public BossInfo.Color getColor()
public BossInfo.Overlay getOverlay()
public boolean shouldDarkenSky()
public boolean shouldPlayEndBossMusic()
public boolean shouldCreateFog()