Function entity_providers
pub fn entity_providers<T, C>(
key: &EntityCapabilityKey<T, C>,
host: &dyn Host,
entity: EntityRef,
context: C,
) -> Option<EntityProviders<T, C>>Expand description
The providers mods registered for key and the type of entity, for the game’s own
lookups (a hopper’s): none where no mod registered one, so a vanilla container entity’s
lookup costs one table check and allocates nothing, and the game needn’t work out its own
answer. EntityProviders::ask then asks them, as the game’s lookups for block entities do.