mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Flatten Item variants, remove Item->setDamage()
This commit is contained in:
@ -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.
|
||||
*
|
||||
|
Reference in New Issue
Block a user