Class SUpdateBossInfoPacket
- java.lang.Object
-
- net.minecraft.network.play.server.SUpdateBossInfoPacket
-
- All Implemented Interfaces:
IPacket<IClientPlayNetHandler>
public class SUpdateBossInfoPacket extends java.lang.Object implements IPacket<IClientPlayNetHandler>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSUpdateBossInfoPacket.Operation
-
Field Summary
Fields Modifier and Type Field Description private BossInfo.Colorcolorprivate booleancreateWorldFogprivate booleandarkenScreenprivate java.util.UUIDidprivate ITextComponentnameprivate SUpdateBossInfoPacket.Operationoperationprivate BossInfo.Overlayoverlayprivate floatpctprivate booleanplayMusic
-
Constructor Summary
Constructors Constructor Description SUpdateBossInfoPacket()SUpdateBossInfoPacket(SUpdateBossInfoPacket.Operation p_i46964_1_, BossInfo p_i46964_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voiddecodeProperties(int p_186903_1_)private intencodeProperties()BossInfo.ColorgetColor()java.util.UUIDgetId()ITextComponentgetName()SUpdateBossInfoPacket.OperationgetOperation()BossInfo.OverlaygetOverlay()floatgetPercent()voidhandle(IClientPlayNetHandler p_148833_1_)voidread(PacketBuffer p_148837_1_)booleanshouldCreateWorldFog()booleanshouldDarkenScreen()booleanshouldPlayMusic()voidwrite(PacketBuffer p_148840_1_)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraft.network.IPacket
isSkippable
-
-
-
-
Field Detail
-
id
private java.util.UUID id
-
operation
private SUpdateBossInfoPacket.Operation operation
-
name
private ITextComponent name
-
pct
private float pct
-
color
private BossInfo.Color color
-
overlay
private BossInfo.Overlay overlay
-
darkenScreen
private boolean darkenScreen
-
playMusic
private boolean playMusic
-
createWorldFog
private boolean createWorldFog
-
-
Constructor Detail
-
SUpdateBossInfoPacket
public SUpdateBossInfoPacket()
-
SUpdateBossInfoPacket
public SUpdateBossInfoPacket(SUpdateBossInfoPacket.Operation p_i46964_1_, BossInfo p_i46964_2_)
-
-
Method Detail
-
read
public void read(PacketBuffer p_148837_1_) throws java.io.IOException
- Specified by:
readin interfaceIPacket<IClientPlayNetHandler>- Throws:
java.io.IOException
-
decodeProperties
private void decodeProperties(int p_186903_1_)
-
write
public void write(PacketBuffer p_148840_1_) throws java.io.IOException
- Specified by:
writein interfaceIPacket<IClientPlayNetHandler>- Throws:
java.io.IOException
-
encodeProperties
private int encodeProperties()
-
handle
public void handle(IClientPlayNetHandler p_148833_1_)
- Specified by:
handlein interfaceIPacket<IClientPlayNetHandler>
-
getId
public java.util.UUID getId()
-
getOperation
public SUpdateBossInfoPacket.Operation getOperation()
-
getName
public ITextComponent getName()
-
getPercent
public float getPercent()
-
getColor
public BossInfo.Color getColor()
-
getOverlay
public BossInfo.Overlay getOverlay()
-
shouldDarkenScreen
public boolean shouldDarkenScreen()
-
shouldPlayMusic
public boolean shouldPlayMusic()
-
shouldCreateWorldFog
public boolean shouldCreateWorldFog()
-
-