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
fn load_resource(&self, id: &ResourceIdentifier<'_>) -> Result<Vec<u8>, Error>
fn load_resource(&self, id: &ResourceIdentifier<'_>) -> Result<Vec<u8>, Error>
Returns the raw bytes of the resource referenced by the given
ResourceIdentifier
.