mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-20 15:41:33 +00:00
Added VanillaItems::AIR()
we don't usually add VanillaItems entries for blocks since they already exist in VanillaBlocks, but air has a special use case specifically as an itemstack, so we make an exception for this case.
This commit is contained in:
@@ -478,6 +478,10 @@ class ItemFactory{
|
||||
return $item;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
* @see VanillaItems::AIR()
|
||||
*/
|
||||
public static function air() : Item{
|
||||
return self::getInstance()->get(ItemIds::AIR, 0, 0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user