Interface IModelBakerExtension
- All Known Subinterfaces:
ModelBaker
- All Known Implementing Classes:
ModelBakery.ModelBakerImpl
public interface IModelBakerExtension
An extension to
ModelBaker that allows for custom model baking.-
Method Summary
Modifier and TypeMethodDescriptiondefault TextureAtlasSpritefindSprite(TextureSlots slots, String slotName) Finds a sprite for the given slot name.@Nullable UnbakedModelgetModel(ResourceLocation location) Gets the unbaked model for the given location.default ModelBakerself()
-
Method Details
-
self
-
getModel
Gets the unbaked model for the given location.- Parameters:
location- The location of the model- Returns:
- The unbaked model, or null if not found
-
findSprite
Finds a sprite for the given slot name.- Parameters:
slots- The texture slotsslotName- The name of the slot- Returns:
- The sprite, or a missing reference sprite if not found
-