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, registerVariantNamespublic ModelLoader(IResourceManager manager, TextureMap map, BlockModelShapes shapes)
public boolean isLoading()
public IRegistry<ModelResourceLocation,IBakedModel> setupModelRegistry()
setupModelRegistry in class ModelBakeryprotected void registerVariant(ModelBlockDefinition definition, ModelResourceLocation location)
registerVariant in class ModelBakeryprotected ModelBlockDefinition getModelBlockDefinition(ResourceLocation location)
getModelBlockDefinition in class ModelBakerypublic static ModelResourceLocation getInventoryVariant(java.lang.String s)
public IModel getModel(ResourceLocation location) throws java.io.IOException
java.io.IOExceptionprotected ResourceLocation getModelLocation(ResourceLocation model)
getModelLocation in class ModelBakerypublic 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()