public class ModelManager extends ReloadListener<ModelBakery> implements java.lang.AutoCloseable
IFutureReloadListener.IStage
Modifier and Type | Field and Description |
---|---|
private SpriteMap |
atlases |
private java.util.Map<ResourceLocation,IBakedModel> |
bakedRegistry |
private BlockColors |
blockColors |
private BlockModelShapes |
blockModelShaper |
private int |
maxMipmapLevels |
private IBakedModel |
missingModel |
private it.unimi.dsi.fastutil.objects.Object2IntMap<BlockState> |
modelGroups |
private TextureManager |
textureManager |
Constructor and Description |
---|
ModelManager(TextureManager p_i226057_1_,
BlockColors p_i226057_2_,
int p_i226057_3_) |
Modifier and Type | Method and Description |
---|---|
protected void |
apply(ModelBakery p_212853_1_,
IResourceManager p_212853_2_,
IProfiler p_212853_3_) |
void |
close() |
AtlasTexture |
getAtlas(ResourceLocation p_229356_1_) |
BlockModelShapes |
getBlockModelShaper() |
IBakedModel |
getMissingModel() |
IBakedModel |
getModel(ModelResourceLocation p_174953_1_) |
IBakedModel |
getModel(ResourceLocation modelLocation) |
IResourceType |
getResourceType() |
protected ModelBakery |
prepare(IResourceManager p_212854_1_,
IProfiler p_212854_2_) |
boolean |
requiresRender(BlockState p_224742_1_,
BlockState p_224742_2_) |
void |
updateMaxMipLevel(int p_229355_1_) |
reload
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName
private java.util.Map<ResourceLocation,IBakedModel> bakedRegistry
@Nullable private SpriteMap atlases
private final BlockModelShapes blockModelShaper
private final TextureManager textureManager
private final BlockColors blockColors
private int maxMipmapLevels
private IBakedModel missingModel
private it.unimi.dsi.fastutil.objects.Object2IntMap<BlockState> modelGroups
public ModelManager(TextureManager p_i226057_1_, BlockColors p_i226057_2_, int p_i226057_3_)
public IBakedModel getModel(ResourceLocation modelLocation)
public IBakedModel getModel(ModelResourceLocation p_174953_1_)
public IBakedModel getMissingModel()
public BlockModelShapes getBlockModelShaper()
protected ModelBakery prepare(IResourceManager p_212854_1_, IProfiler p_212854_2_)
prepare
in class ReloadListener<ModelBakery>
protected void apply(ModelBakery p_212853_1_, IResourceManager p_212853_2_, IProfiler p_212853_3_)
apply
in class ReloadListener<ModelBakery>
public boolean requiresRender(BlockState p_224742_1_, BlockState p_224742_2_)
public AtlasTexture getAtlas(ResourceLocation p_229356_1_)
public void close()
close
in interface java.lang.AutoCloseable
public void updateMaxMipLevel(int p_229355_1_)
public IResourceType getResourceType()