Trait minecraft_assets::api::LoadResource[][src]

pub trait LoadResource {
    fn load_resource(
        &self,
        id: &ResourceIdentifier<'_>
    ) -> Result<Vec<u8>, Error>; }
Expand description

Indicates that a type can load provide the raw data of resources.

Required methods

Returns the raw bytes of the resource referenced by the given ResourceIdentifier.

Implementors