7e7ad74203
commit 00d9c08c78680aba0310febfce5f42ccdb873eb6 Author: modmuss50 <modmuss50@gmail.com> Date: Fri Jan 22 13:38:27 2016 +0000 Rename to fix spelling issue commit cf780e5f6dc548b64da8e4e2f24f38377b692c5c Author: modmuss50 <modmuss50@gmail.com> Date: Fri Jan 22 13:27:15 2016 +0000 Update to new JSON-Destoryer version commit ef3c8636242a54787d53cef9dda373818030d991 Author: modmuss50 <modmuss50@gmail.com> Date: Wed Jan 20 17:27:41 2016 +0000 Update to new json destroyer
16 lines
587 B
Java
16 lines
587 B
Java
package techreborn.items;
|
|
|
|
|
|
import me.modmuss50.jsonDestroyer.api.ITexturedItem;
|
|
import net.minecraft.client.resources.model.ModelResourceLocation;
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
import net.minecraft.item.ItemStack;
|
|
import techreborn.lib.ModInfo;
|
|
|
|
public abstract class ItemTextureBase extends ItemTR implements ITexturedItem {
|
|
|
|
@Override
|
|
public ModelResourceLocation getModel(ItemStack stack, EntityPlayer player, int useRemaining) {
|
|
return new ModelResourceLocation(ModInfo.MOD_ID + ":" + getUnlocalizedName(stack).substring(5), "inventory");
|
|
}
|
|
}
|