mirror of
https://github.com/GTNewHorizons/Mantle.git
synced 2026-11-22 21:10:00 +00:00
Add fallback model loader
Allows loading the first model from a list with a matching mod ID
This commit is contained in:
1 parent
6c0fb541b8
commit
e658d4b5f9
3 files changed
+105
-15
No files matched your search
@@ -13,6 +13,7 @@ import net.minecraftforge.fml.common.Mod.EventBusSubscriber.Bus;
|
||||
import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent;
|
||||
import slimeknights.mantle.Mantle;
|
||||
import slimeknights.mantle.client.book.BookLoader;
|
||||
import slimeknights.mantle.client.model.FallbackModelLoader;
|
||||
import slimeknights.mantle.client.model.connected.ConnectedModel;
|
||||
import slimeknights.mantle.client.model.inventory.InventoryModel;
|
||||
|
||||
@@ -30,6 +31,7 @@ public class ClientEvents {
|
||||
|
||||
@SubscribeEvent
|
||||
static void registerModelLoaders(ModelRegistryEvent event) {
|
||||
ModelLoaderRegistry.registerLoader(Mantle.getResource("fallback"), FallbackModelLoader.INSTANCE);
|
||||
ModelLoaderRegistry.registerLoader(Mantle.getResource("inventory"), InventoryModel.Loader.INSTANCE);
|
||||
ModelLoaderRegistry.registerLoader(Mantle.getResource("connected"), ConnectedModel.Loader.INSTANCE);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user