ResourceType

sealed interface ResourceType

Specifies the type of resource that a ResourcePath points to.

Inheritors

Types

Link copied to clipboard
@Serializable
data object BedTexture : ResourceType.Texture

Bed entity textures.

Link copied to clipboard
@Serializable
data object ChestTexture : ResourceType.Texture

Chest entity textures.

Link copied to clipboard
@Serializable
data object EntityTexture : ResourceType.Texture

Entity textures.

Link copied to clipboard
@Serializable
data object Equipment : ResourceType.JsonFile

Equipment definitions

Link copied to clipboard

Equipment textures

Link copied to clipboard
@Serializable
data object Font : ResourceType.JsonFile

Font definitions

Link copied to clipboard
@Serializable
data object FontTexture : ResourceType.Texture

Font textures. Assumed to contain the file extension .png inside ResourcePath.path.

Link copied to clipboard
sealed interface HasMcMeta : ResourceType

Marker interface that specifies that a ResourceType has a corresponding .mcmeta file.

Link copied to clipboard

Horse body equipment textures

Link copied to clipboard

Humanoid equipment textures

Link copied to clipboard

Humanoid leggings equipment textures

Link copied to clipboard

Item model definitions

Link copied to clipboard
sealed interface JsonFile : ResourceType

Resources of type .json.

Link copied to clipboard

Llama body equipment textures

Link copied to clipboard
@Serializable
data object Model : ResourceType.JsonFile

Generic Item- and block models

Link copied to clipboard
sealed interface PngFile : ResourceType

Resources of type .png.

Link copied to clipboard
@Serializable
data object ShulkerTexture : ResourceType.Texture

Shulker entity textures.

Link copied to clipboard
@Serializable
data object SignTexture : ResourceType.Texture

Sign entity textures.

Link copied to clipboard
sealed interface Texture : ResourceType.PngFile

Resources that represent texture files.

Link copied to clipboard

Tooltip background textures

Link copied to clipboard

Tooltip frame textures

Link copied to clipboard
Link copied to clipboard
@Serializable
data object UnihexZip : ResourceType

Unihex zip files. Assumed to contain the file extension .zip inside ResourcePath.path.

Link copied to clipboard

Wings equipment textures

Link copied to clipboard

Wolf body equipment textures

Properties

Link copied to clipboard
abstract val prefix: String

The directory under which resources of this type are stored.

Link copied to clipboard
abstract val suffix: String

The file extension of resources of this type.