mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-26 06:53:30 +00:00
Fixed textures, split the alveary stuff, onlt GUI left to do!
This commit is contained in:
1 parent
a5e27bfd47
commit
34a9a90ab3
35 files changed
+1453
-586
No files matched your search
@@ -2,11 +2,14 @@ package binnie.extrabees.items;
|
||||
|
||||
import binnie.extrabees.items.types.IEBEnumItem;
|
||||
import binnie.extrabees.items.types.IEBItemMiscProvider;
|
||||
import binnie.extrabees.utils.ExtraBeesResourceLocation;
|
||||
import forestry.api.core.IModelManager;
|
||||
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.client.model.ModelLoader;
|
||||
import net.minecraftforge.fml.relauncher.Side;
|
||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
|
||||
@@ -35,7 +38,7 @@ public class ItemMiscProduct extends ItemProduct {
|
||||
@SuppressWarnings("all")
|
||||
public void registerModel(Item item, IModelManager manager) {
|
||||
for (IEBEnumItem type : types) {
|
||||
manager.registerItemModel(item, type.ordinal(), "misc/" + ((IEBItemMiscProvider) type).getModelPath());
|
||||
ModelLoader.setCustomModelResourceLocation(item, type.ordinal(), new ModelResourceLocation(new ExtraBeesResourceLocation("misc/" + ((IEBItemMiscProvider) type).getModelPath()), "inventory"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user