Skip to content

BlockTypeInfo ​

final class · pocketmine\block\BlockTypeInfo · source

Methods ​

__construct() ​

php
public function __construct(\pocketmine\block\BlockBreakInfo $breakInfo, array $typeTags = [], array $enchantmentTags = [])

getBreakInfo() ​

php
public function getBreakInfo() : \pocketmine\block\BlockBreakInfo

getEnchantmentTags() ​

php
public function getEnchantmentTags() : array

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.).

getTypeTags() ​

php
public function getTypeTags() : array

hasTypeTag() ​

php
public function hasTypeTag(string $tag) : bool

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.