Module minecraft_assets::api [−][src]
Expand description
An API for programmatically accessing Minecraft resources and associated metadata.
Resource Identifiers
Every resource is associated with a unique ResourceIdentifier
, which is a
combination of a ResourceKind
and a namespaced identifier.
Providers
Resources can be enumerated and loaded using the ResourceProvider
trait.
This crate provides the FileSystemResourceProvider
as a convenient
implementation of this trait.
Asset Pack
Resources can be ergonomically loaded through the AssetPack
API.
Structs
Top-level API for accessing Minecraft assets.
A ResourceProvider
that provides resources from the local file system.
Helper methods for dealing with model identifiers.
Methods for resolving the properties of a Model
with respect to its
parents.
A namespaced, typed resource identifier.
Represents the full path to a resource, e.g., on the local file system.
Enums
Error types that can be returned from API methods.
The category of a resource.
The type of a resource.
Constants
Traits
Indicates that a type can enumerate available resources.
Indicates that a type can load provide the raw data of resources.
Marker trait for types that are EnumerateResources
and LoadResource
.
Type Definitions
Result alias for convenience.