EntityList
class EntityList<T : Entity>on_realm_stop { World.players.forEach { player -> player.message("The realm is closing.") } Logger.info("up to ${World.players.capacity} players")}capacity
Section titled “capacity”val capacity: Intoperator fun get(index: Int): T?forEach
Section titled “forEach”fun forEach(action: (T) -> Unit)