PocketMine-MP 5.39.1 git-1be3f83620f013523bb4d35535c6c0f842b54a6a
Loading...
Searching...
No Matches
pocketmine\item\VanillaArmorMaterialsInputs Class Reference
+ Inheritance diagram for pocketmine\item\VanillaArmorMaterialsInputs:
+ Collaboration diagram for pocketmine\item\VanillaArmorMaterialsInputs:

Public Member Functions

 getAllDeclarations ()
 
 getAllValues ()
 
 getTargetClassDocComment ()
 
 getTargetClassName ()
 

Static Public Member Functions

static preprocessMember (object $member)
 

Protected Member Functions

 register (string $name, ArmorMaterial $armorMaterial)
 
 registerDelayed (string $name, \Closure $valueFactory)
 
 registerValue (string $name, mixed $value)
 
 setup ()
 

Detailed Description

Definition at line 40 of file VanillaArmorMaterialsInputs.php.

Member Function Documentation

◆ getAllDeclarations()

pocketmine\utils\RegistrySource::getAllDeclarations ( )
finalinherited

Definition at line 179 of file RegistrySource.php.

◆ getAllValues()

pocketmine\utils\RegistrySource::getAllValues ( )
finalinherited

Definition at line 165 of file RegistrySource.php.

◆ getTargetClassDocComment()

pocketmine\item\VanillaArmorMaterialsInputs::getTargetClassDocComment ( )

Returns information to be prepended to the doc comment on the generated class. Do not include any PHPDoc formatting (e.g. comment tags) in here.

Returns
string[] @phpstan-return list<string>

Reimplemented from pocketmine\utils\RegistrySource.

Definition at line 45 of file VanillaArmorMaterialsInputs.php.

◆ getTargetClassName()

pocketmine\item\VanillaArmorMaterialsInputs::getTargetClassName ( )

Returns the short name (without namespace) of the class to be generated. The generated class will have the same namespace as your source class.

Reimplemented from pocketmine\utils\RegistrySource.

Definition at line 41 of file VanillaArmorMaterialsInputs.php.

◆ preprocessMember()

static pocketmine\utils\RegistrySource::preprocessMember ( object $member)
staticinherited

Override this if you need to, for example, clone a registry member before returning it to the caller

@phpstan-template TParam of object

@phpstan-param TParam $member @phpstan-return TParam

Definition at line 119 of file RegistrySource.php.

◆ register()

pocketmine\item\VanillaArmorMaterialsInputs::register ( string $name,
ArmorMaterial $armorMaterial )
protected

Definition at line 49 of file VanillaArmorMaterialsInputs.php.

◆ registerDelayed()

pocketmine\utils\RegistrySource::registerDelayed ( string $name,
\Closure $valueFactory )
finalprotectedinherited

Adds a value using a callback, which will be invoked when the registry is first accessed at runtime. The type of the generated registry function will be the same as that of the provided closure.

Use this if the value's initialization depends on generated registry code (i.e. it accesses another registry member, either in this registry or another).

Note: A return type MUST be set on the provided closure, or an error will be thrown.

@phpstan-param \Closure(string $name) : TMember $valueFactory

Definition at line 151 of file RegistrySource.php.

◆ registerValue()

pocketmine\utils\RegistrySource::registerValue ( string $name,
mixed $value )
finalprotectedinherited

Adds a plain value to the registry source. You can use this if the value does not depend on any other generated registry code. The type of the generated registry function will be inferred from the value provided.

@phpstan-param TMember $value @phpstan-return TMember

Definition at line 131 of file RegistrySource.php.

◆ setup()

pocketmine\item\VanillaArmorMaterialsInputs::setup ( )
protected

Implement this to add members to the registry.

See also
self::registerValue() for simple values which do not depend on any other registry members
self::registerDelayed() for values which depend on other registry members, either in this registry or another

Reimplemented from pocketmine\utils\RegistrySource.

Definition at line 53 of file VanillaArmorMaterialsInputs.php.


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