I am having an issue with a custom IItemRenderer I have made. There are no errors thrown and the game runs fine, but the IItemRenderer simply does not appear to work. The sole purpose of the IItemRenderer is to scale the size of the texture of any items that are considered a Greatsword. I have tried searching around for the past few days with queries such as "minecraft 1.7.10 how to scale items", but no no avail. I am simply trying to scale the texture of items, nothing more, and I am seeking to accomplish this within the code itself, and not external sources such as model creators.
Since there are no errors, I believe I am either not passing something properly, or I am possibly calling or defining the wrong things. Here is my IItemRenderer, "GreatswordRenderer":
If there is a problem here, I believe it is in this section of the code, since I am trying to call my "ItemModGreatsword" constructor in order to create an instance that my GreatswordRenderer will use:
public GreatswordRenderer(){
this.greatsword = new ItemModGreatsword(null, null);
this.mc = Minecraft.getMinecraft();
}
This is my "ItemModGreatsword", it is simply a new class of tool (specifically, extending ItemSword) that I am using to identify passed items as Greatswords:
If there is a problem in this code, I believe it is in the "public void render . . .". I have found remarkably little documentation on what should go where when dealing with the IItemRenderer, so I put that there because a function in my "GreatswordRenderer" called for it. It is commented out because "render" is undefined in minecraft's "ItemSword". I am not sure what I would need to put in there, I just know that the Fs handle animation (f0-f4 are generally blank for static items) and f5 is used for the thickness of the render.
Just for reference, I am calling a "registerRenderers" function inside of my "ClientProxy", which can be seen here:
Just for additional measure, though I don't think it is needed, here is the file (ModItems) that has all of my items inside of it (note that I am specifically trying to handle the "obsidianGreatsword" texture in my "GreatswordRenderer"):
If anyone can help with this, it would be greatly appreciated. This has been bugging me for the past 4 days and is starting to drive me mad. Such simple concepts make such big problems, eh?