public interface IForgeUnbakedModel
Modifier and Type | Method and Description |
---|---|
IBakedModel |
bake(ModelBakery bakery,
java.util.function.Function<ResourceLocation,TextureAtlasSprite> spriteGetter,
ISprite sprite,
VertexFormat format) |
default java.util.Optional<? extends IClip> |
getClip(java.lang.String name)
Retrieves information about an animation clip in the model.
|
@Nullable IBakedModel bake(ModelBakery bakery, java.util.function.Function<ResourceLocation,TextureAtlasSprite> spriteGetter, ISprite sprite, VertexFormat format)
spriteGetter
- Where textures will be looked up when bakingsprite
- Transforms to apply while baking. Usually will be an instance of IModelState
.default java.util.Optional<? extends IClip> getClip(java.lang.String name)
name
- The clip name