Minecraft 1.9
Forge 12.16.0.1867
I noticed that GUI I'm drawing is displayed twice, when in Normal or Large GUI Scale, and works correctly in Small GUI Scale only, where is is displayed only once.
Screenshots:
Code:
Also, the rectangle is not being drawn where it should be, unless I really messed up the coordinates
Still doesn't work. That method is not being called. And also, as far as I understand, Entity join happens once for every new dropped item. And that is not what I want to do. Basically, I'm just asking whether my code will work or not to turn any coal/charcoal into wet one?
Is there a way to override a vanilla item method without editing the base classes or do I have to create my own item with the same properties and replace the vanilla one with my own?
I have this code in the generic item class:
And in the item's class I call this in constructor:
this.setWashingResult(new ItemStack(ModItems.wetCoal, 1, 0));
The item obtained with /give command or from creative inventory works just fine and has no problems being dropped. However, when I drop an item into the water, game crashes.
Crash log:
The ModelBakery.addVariants works great
However to load the models I had to use this method:
Because the one I fount to be said correct:
was being called all the time and made a giant mess in the log
This code works perfectly:
However when I overload this method to handle items with metadata they're rendered as cubes (json model file not loading)
Since the first one is working, assets is loading properly etc.
The part of log with all the "Loading model..."
I'd think that if "coalage:coal_piece" is OK, then "coalage:colored_coal_black" hould work, but it doesn't.
And getUnlocalizedName method is overloaded and works as I want it to. That's proved by the log