ContainerTrait: Add PhpDoc for ListTag iteration

This commit is contained in:
Dylan K. Taylor 2018-02-15 11:45:13 +00:00
parent e7e4645c0b
commit dc84484c2b

View File

@ -47,6 +47,7 @@ trait ContainerTrait{
$inventoryTag = $this->getNBT()->getListTag(Container::TAG_ITEMS);
$inventory = $this->getRealInventory();
/** @var CompoundTag $itemNBT */
foreach($inventoryTag as $itemNBT){
$inventory->setItem($itemNBT->getByte("Slot"), Item::nbtDeserialize($itemNBT));
}