Phpcraft
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Phpcraft\Packet\BossBar\BossBarPacket Class Reference
Inheritance diagram for Phpcraft\Packet\BossBar\BossBarPacket:
Inheritance graph
[legend]
Collaboration diagram for Phpcraft\Packet\BossBar\BossBarPacket:
Collaboration graph
[legend]

Public Member Functions

 __construct (?UUID $uuid=null)
 
- Public Member Functions inherited from Phpcraft\Packet\Packet
 send (Connection $con)
 
 __toString ()
 

Static Public Member Functions

static read (Connection $con)
 

Public Attributes

const COLOR_PINK = 0
 
const COLOR_BLUE = 1
 
const COLOR_RED = 2
 
const COLOR_GREEN = 3
 
const COLOR_YELLOW = 4
 
const COLOR_PURPLE = 5
 
const COLOR_WHITE = 6
 
const DIVISION_0 = 0
 
const DIVISION_6 = 1
 
const DIVISION_10 = 2
 
const DIVISION_12 = 3
 
const DIVISION_20 = 4
 
 $uuid
 

Constructor & Destructor Documentation

◆ __construct()

Phpcraft\Packet\BossBar\BossBarPacket::__construct ( ?UUID  $uuid = null)
Parameters
UUID | null$uuidThe UUID of the boss bar.

Member Function Documentation

◆ read()

static Phpcraft\Packet\BossBar\BossBarPacket::read ( Connection  $con)
static

Initialises the packet class by reading its payload from the given Connection.

Parameters
Connection$con
Returns
BossBarPacket|null
Exceptions
IOException

Reimplemented from Phpcraft\Packet\Packet.

Member Data Documentation

◆ $uuid

UUID null Phpcraft\Packet\BossBar\BossBarPacket::$uuid

The UUID of the boss bar.

◆ COLOR_BLUE

const Phpcraft\Packet\BossBar\BossBarPacket::COLOR_BLUE = 1

◆ COLOR_GREEN

const Phpcraft\Packet\BossBar\BossBarPacket::COLOR_GREEN = 3

◆ COLOR_PINK

const Phpcraft\Packet\BossBar\BossBarPacket::COLOR_PINK = 0

◆ COLOR_PURPLE

const Phpcraft\Packet\BossBar\BossBarPacket::COLOR_PURPLE = 5

◆ COLOR_RED

const Phpcraft\Packet\BossBar\BossBarPacket::COLOR_RED = 2

◆ COLOR_WHITE

const Phpcraft\Packet\BossBar\BossBarPacket::COLOR_WHITE = 6

◆ COLOR_YELLOW

const Phpcraft\Packet\BossBar\BossBarPacket::COLOR_YELLOW = 4

◆ DIVISION_0

const Phpcraft\Packet\BossBar\BossBarPacket::DIVISION_0 = 0

◆ DIVISION_10

const Phpcraft\Packet\BossBar\BossBarPacket::DIVISION_10 = 2

◆ DIVISION_12

const Phpcraft\Packet\BossBar\BossBarPacket::DIVISION_12 = 3

◆ DIVISION_20

const Phpcraft\Packet\BossBar\BossBarPacket::DIVISION_20 = 4

◆ DIVISION_6

const Phpcraft\Packet\BossBar\BossBarPacket::DIVISION_6 = 1