Interface StandaloneModelBaker<T>

Type Parameters:
T - the type of the baked object, which contains some properties baked from the ResolvedModel
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface StandaloneModelBaker<T>
Baker implementation for standalone models registered to ModelEvent.RegisterStandalone.

Depending on the context where it is used, different parts of a ResolvedModels might be baked. For example, block models query ambient occlusion, item models query transforms, and both query baked geometry. Each standalone model baker can therefore bake exactly the properties it needs, and store them in an object of arbitrary type T.

The baked object can be retrieved later using ModelManager.getStandaloneModel(StandaloneModelKey).

See Also: