getEntity

abstract fun getEntity(entityZone: EntityZone, callback: Consumer<Entity>)

Get entity based on entity zone. Will return a cached entity if found, otherwise will download

Parameters

entityZone

The entity zone to retrieve

callback

Callback with the corresponding Entity (nullable)


abstract fun getEntity(propertyId: Int, buildingId: Int, entityId: Int, callback: Consumer<Entity>)

Get entity based on property, building and entity Ids. Will return a cached entity if found, otherwise will download

Parameters

propertyId

The property

buildingId

The building

entityId

The entity

callback

Callback with the corresponding Entity (nullable)


abstract fun getEntity(propertyId: Int, buildingId: Int, entityId: Int): Entity