Fluid rendering, no more wasted block states

This commit is contained in:
modmuss50 2015-12-05 19:37:42 +00:00
parent 60d7b63d5b
commit 20af49394f
10 changed files with 64 additions and 22 deletions

View file

@ -1,6 +1,9 @@
package techreborn.items;
import net.minecraft.client.resources.model.ModelResourceLocation;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import reborncore.api.IItemTexture;
import techreborn.lib.ModInfo;
@ -9,4 +12,9 @@ public abstract class ItemTextureBase extends ItemTR implements IItemTexture {
public String getModID() {
return ModInfo.MOD_ID;
}
@Override
public ModelResourceLocation getModel(ItemStack stack, EntityPlayer player, int useRemaining) {
return new ModelResourceLocation(ModInfo.MOD_ID + ":" + stack.getItem().getUnlocalizedName(stack).substring(5), "inventory");
}
}