Skip to main content

has_entity_providers

Function has_entity_providers 

pub fn has_entity_providers<T, C>(key: &EntityCapabilityKey<T, C>) -> bool
where T: 'static + ?Sized, C: 'static,
Expand description

Whether any mod registered a provider of entity capability key, for any entity type: one table lookup, no allocation, so the game’s own lookups skip all their work where none did.