Entity: Implement setting score tag

This commit is contained in:
Enes 2018-07-27 14:54:42 +03:00 committed by Dylan K. Taylor
parent bda271ca63
commit 99045fe21a

View File

@ -609,6 +609,20 @@ abstract class Entity extends Location implements Metadatable, EntityIds{
$this->propertyManager->setByte(self::DATA_ALWAYS_SHOW_NAMETAG, $value ? 1 : 0);
}
/**
* @return string|null
*/
public function getScoreTag() : ?string{
return $this->propertyManager->getString(self::DATA_SCORE_TAG);
}
/**
* @param string $score
*/
public function setScoreTag(string $score) : void{
$this->propertyManager->setString(self::DATA_SCORE_TAG, $score);
}
/**
* @return float
*/