Flatten Item variants, remove Item->setDamage()

This commit is contained in:
Dylan K. Taylor
2018-10-06 20:09:11 +01:00
parent 14ef4558c2
commit 5fb7825485
9 changed files with 138 additions and 49 deletions

View File

@ -329,6 +329,15 @@ abstract class Entity extends Location implements Metadatable, EntityIds{
self::$saveNames[$className] = $saveNames;
}
/**
* Returns an array of all registered entity classpaths.
*
* @return string[]
*/
public static function getKnownEntityTypes() : array{
return array_unique(self::$knownEntities);
}
/**
* Helper function which creates minimal NBT needed to spawn an entity.
*