Package-level declarations

Types

Link copied to clipboard
open class Animation(frames: Int, val frametime: Int = 2, val interpolate: Boolean = false)
Link copied to clipboard
data class AnimationData(val animation: Animation) : MetaFile
Link copied to clipboard
data class BlockModel(val id: Identifier, val parent: String, val variant: Pair<Instrument, Int>, val textures: String, val customModelData: Int)

A single model for a block

Link copied to clipboard
Link copied to clipboard
typealias FnResGenerator = () -> String
Link copied to clipboard

A hybrid data generator for block models AND inventory representations of said blocks

Link copied to clipboard
Link copied to clipboard
interface MetaFile
Link copied to clipboard
Link copied to clipboard
open class Model(data: Int, val from: String, val to: String, val parent: String = "item/generated")
Link copied to clipboard
Link copied to clipboard
class RawAnimation(val frames: List<Int>, val frametime: Int = 2, val interpolate: Boolean = false) : Animation
Link copied to clipboard
class RawModel(data: Int, val from: String, val to: String) : Model
Link copied to clipboard
interface ResGenerator
Link copied to clipboard
abstract class SingletonResGenerator(val desiredPath: String) : ResGenerator
Link copied to clipboard

Functions

Link copied to clipboard

Properties

Link copied to clipboard
const val BEGIN_BLOCK_TEXTURES: Int = 3500

A constant CMD ID from which textures for custom block items begin

Link copied to clipboard
const val MODEL_PREFIX: Int

Prefix for custom model data numbers as stated in https://mc-datapacks.github.io/en/conventions/custom_model_id.html