Package net.md_5.bungee.protocol.packet
Class BossBar
java.lang.Object
net.md_5.bungee.protocol.DefinedPacket
net.md_5.bungee.protocol.packet.BossBar
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanintintgetColor()intbytegetFlags()floatgetTitle()getUuid()voidhandle(AbstractPacketHandler handler) inthashCode()voidread(io.netty.buffer.ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion) voidsetAction(int action) voidsetColor(int color) voidsetDivision(int division) voidsetFlags(byte flags) voidsetHealth(float health) voidvoidtoString()voidwrite(io.netty.buffer.ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion) Methods inherited from class net.md_5.bungee.protocol.DefinedPacket
expectedMaxLength, expectedMinLength, read, readArray, readArray, readEnumSet, readFixedBitSet, readProperties, readPublicKey, readString, readString, readStringArray, readTag, readUUID, readVarInt, readVarInt, readVarIntArray, readVarShort, toArray, write, writeArray, writeEnumSet, writeFixedBitSet, writeProperties, writePublicKey, writeString, writeString, writeStringArray, writeTag, writeUUID, writeVarInt, writeVarInt, writeVarShort
-
Constructor Details
-
BossBar
-
BossBar
public BossBar()
-
-
Method Details
-
read
public void read(io.netty.buffer.ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion) - Overrides:
readin classDefinedPacket
-
write
public void write(io.netty.buffer.ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion) - Overrides:
writein classDefinedPacket
-
handle
- Specified by:
handlein classDefinedPacket- Throws:
Exception
-
getUuid
-
getAction
public int getAction() -
getTitle
-
getHealth
public float getHealth() -
getColor
public int getColor() -
getDivision
public int getDivision() -
getFlags
public byte getFlags() -
setUuid
-
setAction
public void setAction(int action) -
setTitle
-
setHealth
public void setHealth(float health) -
setColor
public void setColor(int color) -
setDivision
public void setDivision(int division) -
setFlags
public void setFlags(byte flags) -
toString
- Specified by:
toStringin classDefinedPacket
-
equals
- Specified by:
equalsin classDefinedPacket
-
canEqual
-
hashCode
public int hashCode()- Specified by:
hashCodein classDefinedPacket
-