Phpcraft
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | List of all members
Phpcraft\Entity\Base Class Reference
Inheritance diagram for Phpcraft\Entity\Base:
Inheritance graph
[legend]
Collaboration diagram for Phpcraft\Entity\Base:
Collaboration graph
[legend]

Public Member Functions

 write (Connection $con)
 
 getStringAttributes ()
 

Static Public Member Functions

static getOffset (int $protocol_version)
 

Public Attributes

 $burning = null
 
 $crouching = null
 
 $sprinting = null
 
 $swimming = null
 
 $invisible = null
 
 $glowing = null
 
 $elytraing = null
 
 $custom_name = null
 
 $silent = null
 

Protected Member Functions

 read_ (Connection $con, int $index)
 

Member Function Documentation

◆ getOffset()

static Phpcraft\Entity\Base::getOffset ( int  $protocol_version)
static

Reimplemented in Phpcraft\Entity\Insentient.

◆ getStringAttributes()

Phpcraft\Entity\Base::getStringAttributes ( )
Returns
array<string>

Reimplemented from Phpcraft\Entity\Metadata.

Reimplemented in Phpcraft\Entity\Guardian, Phpcraft\Entity\Creeper, and Phpcraft\Entity\Living.

◆ read_()

Phpcraft\Entity\Base::read_ ( Connection  $con,
int  $index 
)
protected
Parameters
Connection$con
int$index
Returns
boolean
Exceptions
IOException

Reimplemented from Phpcraft\Entity\Metadata.

Reimplemented in Phpcraft\Entity\Guardian, Phpcraft\Entity\Creeper, and Phpcraft\Entity\Living.

◆ write()

Phpcraft\Entity\Base::write ( Connection  $con)

Writes non-null metadata values to the Connection's write buffer.

Parameters
Connection$con
Returns
void

Reimplemented from Phpcraft\Entity\Metadata.

Reimplemented in Phpcraft\Entity\Guardian, Phpcraft\Entity\Creeper, and Phpcraft\Entity\Living.

Member Data Documentation

◆ $burning

boolean null Phpcraft\Entity\Base::$burning = null

◆ $crouching

boolean null Phpcraft\Entity\Base::$crouching = null

◆ $custom_name

ChatComponent null Phpcraft\Entity\Base::$custom_name = null

Custom name of the entity.

◆ $elytraing

boolean null Phpcraft\Entity\Base::$elytraing = null

◆ $glowing

boolean null Phpcraft\Entity\Base::$glowing = null

◆ $invisible

boolean null Phpcraft\Entity\Base::$invisible = null

◆ $silent

boolean null Phpcraft\Entity\Base::$silent = null

◆ $sprinting

boolean null Phpcraft\Entity\Base::$sprinting = null

◆ $swimming

boolean null Phpcraft\Entity\Base::$swimming = null