PocketMine
PlayerCreationEvent Class Reference
Inheritance diagram for PlayerCreationEvent:
Event

Public Member Functions

 __construct (SourceInterface $interface, $baseClass, $playerClass, $clientId, $address, $port)
 
 getInterface ()
 
 getAddress ()
 
 getPort ()
 
 getClientId ()
 
 getBaseClass ()
 
 setBaseClass ($class)
 
 getPlayerClass ()
 
 setPlayerClass ($class)
 
- Public Member Functions inherited from Event
 getEventName ()
 
 getHandlers ()
 

Static Public Attributes

static $handlerList = null
 

Additional Inherited Members

- Protected Attributes inherited from Event
 $eventName = null
 

Detailed Description

Allows the creation of players overriding the base Player class

Constructor & Destructor Documentation

__construct ( SourceInterface  $interface,
  $baseClass,
  $playerClass,
  $clientId,
  $address,
  $port 
)
Parameters
SourceInterface$interface
Player::class$baseClass
Player::class$playerClass
mixed$clientId
string$address
int$port

Member Function Documentation

getAddress ( )
Returns
string
getBaseClass ( )
Returns
Player::class
getClientId ( )
Returns
mixed
getInterface ( )
Returns
SourceInterface
getPlayerClass ( )
Returns
Player::class
getPort ( )
Returns
int
setBaseClass (   $class)
Parameters
Player::class$class
setPlayerClass (   $class)
Parameters
Player::class$class

The documentation for this class was generated from the following file: