Register items models

This commit is contained in:
Shadowfacts 2017-07-01 18:58:22 -04:00
parent 5500bf92cf
commit daddd28d8f
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 17 additions and 0 deletions

View File

@ -2,6 +2,7 @@ package net.shadowfacts.extrahoppers
import net.minecraft.block.Block
import net.minecraft.item.Item
import net.minecraftforge.client.event.ModelRegistryEvent
import net.minecraftforge.common.MinecraftForge
import net.minecraftforge.event.RegistryEvent
import net.minecraftforge.fml.client.registry.ClientRegistry
@ -93,6 +94,22 @@ object ExtraHoppers {
)
}
@JvmStatic
@SubscribeEvent
fun registerModels(event: ModelRegistryEvent) {
blocks.invertedHopper.initItemModel()
blocks.fluidHopper.initItemModel()
blocks.invertedFluidHopper.initItemModel()
blocks.advancedFluidHopper.initItemModel()
blocks.invertedAdvancedFluidHopper.initItemModel()
blocks.woodenHopper.initItemModel()
blocks.invertedWoodenHopper.initItemModel()
blocks.woodenFluidHopper.initItemModel()
blocks.invertedWoodenFluidHopper.initItemModel()
blocks.advancedHopper.initItemModel()
blocks.invertedAdvancedHopper.initItemModel()
}
}
}