getAs

fun <T> getAs(clazz: Class<T>, uuid: UUID): T?(source)
inline fun <T> getAs(uuid: UUID): T?(source)

Returns the PylonEntity with this uuid, or null if the entity does not exist, is not a Pylon entity, or is not of type T.


fun <T> getAs(clazz: Class<T>, entity: Entity): T?(source)
inline fun <T> getAs(entity: Entity): T?(source)

Returns the PylonEntity corresponding to this entity, or if this entity is not a Pylon entity, or is not of type T.