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 class
SUpdateBossInfoPacket.Operation
-
Field Summary
Fields Modifier and Type Field Description private BossInfo.Color
color
private boolean
createWorldFog
private boolean
darkenScreen
private java.util.UUID
id
private ITextComponent
name
private SUpdateBossInfoPacket.Operation
operation
private BossInfo.Overlay
overlay
private float
pct
private boolean
playMusic
-
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 void
decodeProperties(int p_186903_1_)
private int
encodeProperties()
BossInfo.Color
getColor()
java.util.UUID
getId()
ITextComponent
getName()
SUpdateBossInfoPacket.Operation
getOperation()
BossInfo.Overlay
getOverlay()
float
getPercent()
void
handle(IClientPlayNetHandler p_148833_1_)
void
read(PacketBuffer p_148837_1_)
boolean
shouldCreateWorldFog()
boolean
shouldDarkenScreen()
boolean
shouldPlayMusic()
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 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:
read
in 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:
write
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
java.io.IOException
-
encodeProperties
private int encodeProperties()
-
handle
public void handle(IClientPlayNetHandler p_148833_1_)
- Specified by:
handle
in 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()
-
-