ItemModelContent

A PackTaskHolder that deals with generating and assigning custom models to vanilla items via custom-model-data.

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun getOrRegisterDefault(path: ResourcePath): Pair<Material, Int>

Retrieves the first id that registers path using the default material, or registers the path.

Link copied to clipboard
fun isOccupied(material: Material, customModelData: Int): Boolean

Checks whether the given customModelData is occupied under the specified material.

Link copied to clipboard
fun nextCustomModelData(material: Material): Int

Gets the next unused custom model data for the specified material.

Link copied to clipboard
fun registerAll(path: ResourcePath): Map<Material, Int>

Creates a custom model data entry for path under all materials that can be targeted via VanillaMaterialProperty and returns a map of the materials to the custom model data.

Link copied to clipboard
fun registerCustom(path: ResourcePath, material: Material): Int

Creates a custom model data entry for path under the specified material and returns the custom model data.

Link copied to clipboard
fun registerDefault(path: ResourcePath): Pair<Material, Int>

Creates a custom model data entry for path under the default material and returns the default material and the custom model data.