ReloadableSingleBakedModelProvider

Implementation of IReloadableBakedModelProvider, which reloads the model using the given factory.

Parameters

modelFactory

The function, which creates the model

Constructors

Link copied to clipboard
constructor(modelFactory: () -> BakedModel)

Functions

Link copied to clipboard
open override fun getModel(staffStack: ItemStack): BakedModel

Gets the model of the item in the Staff.

Link copied to clipboard
open override fun reload()

Reloads the model(s) returned by getModel. Called after the game initially loads or reloads the resources.