public class ModelLoader extends ModelBakery
| Modifier and Type | Class and Description |
|---|---|
static class |
ModelLoader.UVLock |
bakedRegistry, blockModelShapes, LOCATIONS_BUILTIN_TEXTURES, MODEL_CLOCK, MODEL_COMPASS, MODEL_ENTITY, MODEL_GENERATED, MODEL_MISSING, resourceManager, sprites, textureMap| Constructor and Description |
|---|
ModelLoader(IResourceManager manager,
TextureMap map,
BlockModelShapes shapes) |
| Modifier and Type | Method and Description |
|---|---|
IModel |
getMissingModel() |
IModel |
getModel(ResourceLocation location) |
protected ResourceLocation |
getModelLocation(ResourceLocation model) |
boolean |
isLoading() |
void |
onPostBakeEvent(IRegistry modelRegistry) |
static void |
onRegisterAllBlocks(BlockModelShapes shapes) |
static void |
onRegisterItems(ItemModelMesher mesher) |
protected void |
registerVariant(ModelBlockDefinition definition,
ModelResourceLocation location) |
static void |
setCustomMeshDefinition(Item item,
ItemMeshDefinition meshDefinition) |
static void |
setCustomModelResourceLocation(Item item,
int metadata,
ModelResourceLocation model) |
static void |
setCustomStateMapper(Block block,
IStateMapper mapper) |
IRegistry |
setupModelRegistry() |
addVariantName, bakeModel, getItemLocation, getTextureLocations, getVariantNames, hasItemModel, isCustomRenderer, loadModel, loadVariants, makeItemModel, registerVariantNamespublic ModelLoader(IResourceManager manager, TextureMap map, BlockModelShapes shapes)
public boolean isLoading()
public IRegistry setupModelRegistry()
setupModelRegistry in class ModelBakeryprotected void registerVariant(ModelBlockDefinition definition, ModelResourceLocation location)
registerVariant in class ModelBakerypublic IModel getModel(ResourceLocation location)
protected ResourceLocation getModelLocation(ResourceLocation model)
getModelLocation in class ModelBakerypublic IModel getMissingModel()
public void onPostBakeEvent(IRegistry modelRegistry)
public static void setCustomStateMapper(Block block, IStateMapper mapper)
public static void onRegisterAllBlocks(BlockModelShapes shapes)
public static void setCustomModelResourceLocation(Item item, int metadata, ModelResourceLocation model)
public static void setCustomMeshDefinition(Item item, ItemMeshDefinition meshDefinition)
public static void onRegisterItems(ItemModelMesher mesher)