bake

public BakedModel bake(Baker baker, Function<SpriteIdentifier, Sprite> textureGetter, ModelBakeSettings rotationContainer, Identifier modelId)(source)


public abstract IStaffItemBakedModel bake(Baker baker, Function<SpriteIdentifier, Sprite> textureGetter, ModelBakeSettings rotationContainer, Identifier modelId, Transformation transformation)(source)

Bakes the item model.

Parameters

baker

The baker used to load and bake additional models

textureGetter

Function to get a Sprite from a SpriteIdentifier

rotationContainer

The model rotation container

modelId

The identifier of the staff model being baked. This is not the ID of the item in the staff

transformation

The transformation, which transforms the item into the staff