public class ModelLoader extends ModelBakery
Modifier and Type | Class and Description |
---|---|
static class |
ModelLoader.UVLock
Deprecated.
|
static class |
ModelLoader.White |
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) |
addVariantName, bakeModel, getItemLocation, getTextureLocations, getVariantNames, hasItemModel, isCustomRenderer, loadModel, loadVariants, makeBakedQuad, makeItemModel, registerItemVariants, registerVariantNames
public ModelLoader(IResourceManager manager, TextureMap map, BlockModelShapes shapes)
public boolean isLoading()
public IRegistry<ModelResourceLocation,IBakedModel> setupModelRegistry()
setupModelRegistry
in class ModelBakery
protected void registerVariant(ModelBlockDefinition definition, ModelResourceLocation location)
registerVariant
in class ModelBakery
protected ModelBlockDefinition getModelBlockDefinition(ResourceLocation location)
getModelBlockDefinition
in class ModelBakery
public static ModelResourceLocation getInventoryVariant(java.lang.String s)
public IModel getModel(ResourceLocation location) throws java.io.IOException
java.io.IOException
protected ResourceLocation getModelLocation(ResourceLocation model)
getModelLocation
in class ModelBakery
public IModel getMissingModel()
public IModel getItemModel()
public void onPostBakeEvent(IRegistry<ModelResourceLocation,IBakedModel> 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 setBucketModelDefinition(Item item)
public static void onRegisterItems(ItemModelMesher mesher)
public static <any> defaultTextureGetter()