public class ModelManager extends java.lang.Object implements IResourceManagerReloadListener
Modifier and Type | Field and Description |
---|---|
private IBakedModel |
defaultModel |
private BlockModelShapes |
modelProvider |
private IRegistry<ModelResourceLocation,IBakedModel> |
modelRegistry |
private TextureMap |
texMap |
Constructor and Description |
---|
ModelManager(TextureMap textures) |
Modifier and Type | Method and Description |
---|---|
BlockModelShapes |
getBlockModelShapes() |
IBakedModel |
getMissingModel() |
IBakedModel |
getModel(ModelResourceLocation modelLocation) |
TextureMap |
getTextureMap() |
void |
onResourceManagerReload(IResourceManager resourceManager) |
private IRegistry<ModelResourceLocation,IBakedModel> modelRegistry
private final TextureMap texMap
private final BlockModelShapes modelProvider
private IBakedModel defaultModel
public ModelManager(TextureMap textures)
public void onResourceManagerReload(IResourceManager resourceManager)
onResourceManagerReload
in interface IResourceManagerReloadListener
public IBakedModel getModel(ModelResourceLocation modelLocation)
public IBakedModel getMissingModel()
public TextureMap getTextureMap()
public BlockModelShapes getBlockModelShapes()