pocketmine\item\Item::getCompoundTag PHP Method

getCompoundTag() public method

public getCompoundTag ( ) : string
return string
    public function getCompoundTag()
    {
        return $this->tags;
    }

Usage Example

Example #1
0
 public final function equals(Item $item, $checkDamage = true, $checkCompound = true)
 {
     return $this->id === $item->getId() and ($checkDamage === false or $this->getDamage() === $item->getDamage()) and ($checkCompound === false or $this->getCompoundTag() === $item->getCompoundTag());
 }
All Usage Examples Of pocketmine\item\Item::getCompoundTag