Skip to content

Container ​

interface · pocketmine\block\tile\Container · source

Extends InventoryHolder

Constants ​

TAG_ITEMS ​

php
public const TAG_ITEMS = "Items"

TAG_LOCK ​

php
public const TAG_LOCK = "Lock"

TAG_LOOT_TABLE 5.46.0 ​

php
public const TAG_LOOT_TABLE = "LootTable"

TAG_LOOT_TABLE_SEED 5.46.0 ​

php
public const TAG_LOOT_TABLE_SEED = "LootTableSeed"

TAG_LOOT_TABLE_SEED_LONG 5.46.0 ​

php
public const TAG_LOOT_TABLE_SEED_LONG = "LootTableSeedLong"

Methods ​

canOpenWith() ​

php
public function canOpenWith(string $key) : bool

Returns whether this container can be opened by an item with the given custom name.

getRealInventory() ​

php
public function getRealInventory() : \pocketmine\inventory\Inventory

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