Class SUpdateBossInfoPacket
java.lang.Object
net.minecraft.network.play.server.SUpdateBossInfoPacket
- All Implemented Interfaces:
IPacket<IClientPlayNetHandler>
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate BossInfo.Color
private boolean
private boolean
private UUID
private ITextComponent
private SUpdateBossInfoPacket.Operation
private BossInfo.Overlay
private float
private boolean
-
Constructor Summary
ConstructorDescriptionSUpdateBossInfoPacket
(SUpdateBossInfoPacket.Operation p_i46964_1_, BossInfo p_i46964_2_) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
decodeProperties
(int p_186903_1_) private int
getColor()
getId()
getName()
float
void
handle
(IClientPlayNetHandler p_148833_1_) void
read
(PacketBuffer p_148837_1_) boolean
boolean
boolean
void
write
(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 Details
-
id
-
operation
-
name
-
pct
private float pct -
color
-
overlay
-
darkenScreen
private boolean darkenScreen -
playMusic
private boolean playMusic -
createWorldFog
private boolean createWorldFog
-
-
Constructor Details
-
SUpdateBossInfoPacket
public SUpdateBossInfoPacket() -
SUpdateBossInfoPacket
-
-
Method Details
-
read
- Specified by:
read
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
IOException
-
decodeProperties
private void decodeProperties(int p_186903_1_) -
write
- Specified by:
write
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
IOException
-
encodeProperties
private int encodeProperties() -
handle
- Specified by:
handle
in interfaceIPacket<IClientPlayNetHandler>
-
getId
-
getOperation
-
getName
-
getPercent
public float getPercent() -
getColor
-
getOverlay
-
shouldDarkenScreen
public boolean shouldDarkenScreen() -
shouldPlayMusic
public boolean shouldPlayMusic() -
shouldCreateWorldFog
public boolean shouldCreateWorldFog()
-