PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
|
Classes | |
class | AssumptionFailedError |
class | Binary |
class | BinaryDataException |
class | BinaryStream |
class | BroadcastLoggerForwarder |
class | Config |
class | ConfigLoadException |
class | Filesystem |
class | Git |
class | Internet |
class | InternetException |
class | InternetRequestResult |
class | Limits |
class | MainLogger |
class | MainLoggerThread |
class | ObjectSet |
class | Process |
class | Random |
class | ReversePriorityQueue |
class | ServerException |
class | ServerKiller |
class | SignalHandler |
class | StringToTParser |
class | Terminal |
class | TextFormat |
class | Timezone |
class | Utils |
class | VersionString |
Functions | |
static | __callStatic ($name, $arguments) |
static | checkInit () |
equals (self $other) | |
static | getAll () |
getDestructorCallbacks () | |
static | getInstance () |
id () | |
name () | |
static | preprocessMember (object $member) |
static | preprocessMember (object $member) |
static | register (self $member) |
static | registerAll (self ... $members) |
static | reset () |
static | setInstance (self $instance) |
static | setup () |
Variables | |
trait | CloningRegistryTrait |
trait | DestructorCallbackTrait |
trait | EnumTrait |
trait | RegistryTrait |
trait | SingletonTrait |
Various Utilities used around the code
Methods for working with binary strings
pocketmine\utils\__destruct | ( | ) |
Definition at line 43 of file DestructorCallbackTrait.php.
|
static |
string | $name | |
mixed[] | $arguments | @phpstan-param list<mixed> $arguments |
Definition at line 113 of file RegistryTrait.php.
|
staticprotected |
Definition at line 80 of file RegistryTrait.php.
pocketmine\utils\equals | ( | self | $other | ) |
Returns whether the two objects are equivalent.
Definition at line 106 of file EnumTrait.php.
|
static |
Returns all members of the enum. This is overridden to change the return typehint.
Definition at line 63 of file EnumTrait.php.
pocketmine\utils\getDestructorCallbacks | ( | ) |
@phpstan-return ObjectSet<\Closure() : void>
Definition at line 39 of file DestructorCallbackTrait.php.
|
static |
Definition at line 34 of file SingletonTrait.php.
pocketmine\utils\id | ( | ) |
Returns a runtime-only identifier for this enum member. This will be different with each run, so don't try to hardcode it. This can be useful for switches or array indexing.
Definition at line 99 of file EnumTrait.php.
pocketmine\utils\name | ( | ) |
Definition at line 90 of file EnumTrait.php.
|
staticprotected |
Definition at line 33 of file CloningRegistryTrait.php.
|
staticprotected |
Definition at line 102 of file RegistryTrait.php.
|
staticprotected |
Registers the given object as an enum member.
InvalidArgumentException
Definition at line 46 of file EnumTrait.php.
|
staticprotected |
Definition at line 50 of file EnumTrait.php.
|
static |
Definition at line 45 of file SingletonTrait.php.
|
static |
Definition at line 41 of file SingletonTrait.php.
|
staticabstractprotected |
Inserts default entries into the registry.
(This ought to be private, but traits suck too much for that.)
References pocketmine\utils\setup().
Referenced by pocketmine\utils\setup().
trait pocketmine::utils\CloningRegistryTrait |
This trait offers the same functionality as RegistryTrait, but also clones any returned objects to prevent outside modification.
Definition at line 30 of file CloningRegistryTrait.php.
trait pocketmine::utils\DestructorCallbackTrait |
This trait provides destructor callback functionality to objects which use it. This enables a weakmap-like system to function without actually having weak maps. TODO: remove this in PHP 8
Definition at line 31 of file DestructorCallbackTrait.php.
trait pocketmine::utils\EnumTrait |
This trait allows a class to simulate a Java-style enum. Members are exposed as static methods and handled via __callStatic().
Classes using this trait need to include @method tags in their class docblock for every enum member. Alternatively, just put @generate-registry-docblock in the docblock and run build/generate-registry-annotations.php
LegacyEnumShimTrait
if you need to provide backwards compatible EnumTrait-like API for migrated enums. Definition at line 36 of file EnumTrait.php.
trait pocketmine::utils\RegistryTrait |
This trait allows a class to simulate object class constants, since PHP doesn't currently support this. These faux constants are exposed in static class methods, which are handled using __callStatic().
Classes using this trait need to include @method tags in their class docblock for every faux constant. Alternatively, just put @generate-registry-docblock in the docblock and run build/generate-registry-annotations.php
Definition at line 38 of file RegistryTrait.php.
trait pocketmine::utils\SingletonTrait |
Definition at line 26 of file SingletonTrait.php.