PocketMine-MP 5.15.1 git-fb9a74e8799c71ed8292cfa53abe7a4c9204629d
pocketmine\block\BlockTypeInfo Class Reference
+ Collaboration diagram for pocketmine\block\BlockTypeInfo:

Public Member Functions

 __construct (private BlockBreakInfo $breakInfo, array $typeTags=[], private array $enchantmentTags=[])
 
 getBreakInfo ()
 
 getEnchantmentTags ()
 
 getTypeTags ()
 
 hasTypeTag (string $tag)
 

Detailed Description

Definition at line 29 of file BlockTypeInfo.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\block\BlockTypeInfo::__construct ( private BlockBreakInfo  $breakInfo,
array  $typeTags = [],
private array  $enchantmentTags = [] 
)
Parameters
string[]$typeTags
string[]$enchantmentTags

Definition at line 40 of file BlockTypeInfo.php.

Member Function Documentation

◆ getBreakInfo()

pocketmine\block\BlockTypeInfo::getBreakInfo ( )

Definition at line 48 of file BlockTypeInfo.php.

◆ getEnchantmentTags()

pocketmine\block\BlockTypeInfo::getEnchantmentTags ( )

Returns tags that represent the type of item being enchanted and are used to determine what enchantments can be applied to the item of this block during in-game enchanting (enchanting table, anvil, fishing, etc.).

See also
ItemEnchantmentTags
ItemEnchantmentTagRegistry
AvailableEnchantmentRegistry
Returns
string[]

Definition at line 64 of file BlockTypeInfo.php.

◆ getTypeTags()

pocketmine\block\BlockTypeInfo::getTypeTags ( )
Returns
string[]

Definition at line 51 of file BlockTypeInfo.php.

◆ hasTypeTag()

pocketmine\block\BlockTypeInfo::hasTypeTag ( string  $tag)

Definition at line 53 of file BlockTypeInfo.php.


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