2015-11-24 22:39:22 +01:00
|
|
|
package techreborn.items;
|
|
|
|
|
|
|
|
|
2016-01-22 14:39:20 +01:00
|
|
|
import me.modmuss50.jsonDestroyer.api.ITexturedItem;
|
2015-12-05 20:37:42 +01:00
|
|
|
import net.minecraft.client.resources.model.ModelResourceLocation;
|
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
|
|
import net.minecraft.item.ItemStack;
|
2015-11-24 22:39:22 +01:00
|
|
|
import techreborn.lib.ModInfo;
|
|
|
|
|
2016-01-22 14:39:20 +01:00
|
|
|
public abstract class ItemTextureBase extends ItemTR implements ITexturedItem {
|
2015-12-05 20:37:42 +01:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public ModelResourceLocation getModel(ItemStack stack, EntityPlayer player, int useRemaining) {
|
2016-01-22 14:39:20 +01:00
|
|
|
return new ModelResourceLocation(ModInfo.MOD_ID + ":" + getUnlocalizedName(stack).substring(5), "inventory");
|
2015-12-05 20:37:42 +01:00
|
|
|
}
|
2015-11-24 22:39:22 +01:00
|
|
|
}
|