public final class ModelLoader extends ModelBakery
Modifier and Type | Class and Description |
---|---|
protected class |
ModelLoader.BakedModelCacheKey |
static class |
ModelLoader.ItemLoadingException
16x16 pure white sprite.
|
protected static class |
ModelLoader.VanillaLoader |
protected static class |
ModelLoader.VariantLoader |
static class |
ModelLoader.White |
bakedRegistry, LOCATION_DESTROY_STAGE_0, LOCATION_DESTROY_STAGE_1, LOCATION_DESTROY_STAGE_2, LOCATION_DESTROY_STAGE_3, LOCATION_DESTROY_STAGE_4, LOCATION_DESTROY_STAGE_5, LOCATION_DESTROY_STAGE_6, LOCATION_DESTROY_STAGE_7, LOCATION_DESTROY_STAGE_8, LOCATION_DESTROY_STAGE_9, LOCATION_FIRE_0, LOCATION_FIRE_1, LOCATION_LAVA_FLOW, LOCATION_WATER_FLOW, LOCATION_WATER_OVERLAY, LOCATIONS_BUILTIN_TEXTURES, MISSING_MODEL_MESH, MODEL_ENTITY, MODEL_GENERATED, MODEL_MISSING, resourceManager, textureMap
Constructor and Description |
---|
ModelLoader(IResourceManager manager,
TextureMap map) |
Modifier and Type | Method and Description |
---|---|
static java.util.function.Function<ResourceLocation,IUnbakedModel> |
defaultModelGetter() |
static java.util.function.Function<ResourceLocation,TextureAtlasSprite> |
defaultTextureGetter()
Get the default texture getter the models will be baked with.
|
static ModelResourceLocation |
getInventoryVariant(java.lang.String s)
Hooked from ModelBakery, allows using MRLs that don't end with "inventory" for items.
|
protected IUnbakedModel |
getMissingModel() |
protected ResourceLocation |
getModelLocation(ResourceLocation model) |
boolean |
isLoading() |
void |
onPostBakeEvent(java.util.Map<ModelResourceLocation,IBakedModel> modelRegistry)
Internal, do not use.
|
static void |
onRegisterItems(ItemModelMesher mesher)
Internal, do not use.
|
getUnbakedModel, loadModel, setupModelRegistry
public ModelLoader(IResourceManager manager, TextureMap map)
public boolean isLoading()
public static ModelResourceLocation getInventoryVariant(java.lang.String s)
protected ResourceLocation getModelLocation(ResourceLocation model)
protected IUnbakedModel getMissingModel()
public void onPostBakeEvent(java.util.Map<ModelResourceLocation,IBakedModel> modelRegistry)
public static void onRegisterItems(ItemModelMesher mesher)
public static java.util.function.Function<ResourceLocation,TextureAtlasSprite> defaultTextureGetter()
public static java.util.function.Function<ResourceLocation,IUnbakedModel> defaultModelGetter()