Companion

object Companion

Properties

Link copied to clipboard

Read-only registry of all constructed custom entity types, keyed by getNamespacedKey.

Functions

Link copied to clipboard
fun equalByNamespacedKey(entity1: Entity?, entity2: Entity?): Boolean

Whether both entities carry the same custom-entity key; false if either lacks one.

fun equalByNamespacedKeyIfExistElseByEntityType(entity1: Entity?, entity2: Entity?): Boolean

Compares by custom-entity key when both have one, otherwise by EntityType.

Link copied to clipboard
fun getEntitiesByNamespacedKey(namespacedKey: String): ArrayList<Entity>

Cached live entities of the type registered under namespacedKey.

Link copied to clipboard
fun getModule(): IModule
Link copied to clipboard
fun getNamespacedKeyByEntity(entity: Entity?): String?

Reads the custom-entity key stored on entity, or null for vanilla/absent entities.