public class ModelManager extends ReloadListener<ModelBakery> implements java.lang.AutoCloseable
IFutureReloadListener.IStage| Constructor and Description |
|---|
ModelManager(TextureManager textureManagerIn,
BlockColors blockColorsIn,
int maxMipmapLevelIn) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
apply(ModelBakery objectIn,
IResourceManager resourceManagerIn,
IProfiler profilerIn) |
void |
close() |
AtlasTexture |
getAtlasTexture(ResourceLocation locationIn) |
BlockModelShapes |
getBlockModelShapes() |
IBakedModel |
getMissingModel() |
IBakedModel |
getModel(ModelResourceLocation modelLocation) |
IBakedModel |
getModel(ResourceLocation modelLocation) |
IResourceType |
getResourceType() |
boolean |
needsRenderUpdate(BlockState oldState,
BlockState newState) |
protected ModelBakery |
prepare(IResourceManager resourceManagerIn,
IProfiler profilerIn) |
void |
setMaxMipmapLevel(int levelIn) |
reloadclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfunc_225594_i_public ModelManager(TextureManager textureManagerIn, BlockColors blockColorsIn, int maxMipmapLevelIn)
public IBakedModel getModel(ResourceLocation modelLocation)
public IBakedModel getModel(ModelResourceLocation modelLocation)
public IBakedModel getMissingModel()
public BlockModelShapes getBlockModelShapes()
protected ModelBakery prepare(IResourceManager resourceManagerIn, IProfiler profilerIn)
prepare in class ReloadListener<ModelBakery>protected void apply(ModelBakery objectIn, IResourceManager resourceManagerIn, IProfiler profilerIn)
apply in class ReloadListener<ModelBakery>public boolean needsRenderUpdate(BlockState oldState, BlockState newState)
public AtlasTexture getAtlasTexture(ResourceLocation locationIn)
public void close()
close in interface java.lang.AutoCloseablepublic void setMaxMipmapLevel(int levelIn)
public IResourceType getResourceType()