Fluid rendering, no more wasted block states
This commit is contained in:
parent
60d7b63d5b
commit
20af49394f
10 changed files with 64 additions and 22 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue