SuperKael
Forge Modder-
Posts
66 -
Joined
-
Last visited
Converted
-
Gender
Undisclosed
-
Personal Text
I only work with 1.7.10
SuperKael's Achievements
Stone Miner (3/8)
7
Reputation
-
Optional.Interface cannot be resolved to a type.
SuperKael replied to Matyk's topic in Modder Support
Ah, ok! Thanks! I know how to use Reflection and whatnot, but I didn't want to use it for every invocation. Didn't think of this! -
Optional.Interface cannot be resolved to a type.
SuperKael replied to Matyk's topic in Modder Support
I've got the same problem - then what should I use? I want to add an optional dependency for another mod of mine's API. How would I go about doing this? Please don't say reflection... -
[1.7.10] Help with getting raw texture data
SuperKael replied to SuperKael's topic in Modder Support
Haha, how fun. I just managed to stumble across my own thread in a google search. Congrats on figuring out what you were doing, but man, but own code now disgusts me. I was wrapping divisions in try/catch to deal with divide by zeros... blegh. I sure have come a long way in the past few years :D. Oh, and sorry for the bit of thread necromancy, this thread just brought back a lot of memories. -
Hm, that works, in fact that was my original plan, but I didn't want to have to put the slot in a different container, like baubles does. I thought I read that it was possible to add the slot to the already-existing inventory container, but I suppose that's not worth the trouble. Whatever. Thanks very much for your time and help! I guess you saved me from a lot more headache.
-
I guess what I'm asking is, if not what I'm doing, how am I supposed to add a new slot to an existing container/gui (that player's inventory), using a capability? I have read that it's possible, but I don't understand how.
-
I was afraid of something like that. Capabilities are so confusing... Frankly, I came to this process by patching together a bunch of different tutorials .-. What should I be doing? I have read a ton about capabilities, but I still don't understand them completely.
-
Check the console, it should mention a problem regarding the model json. All blocks and items need to have a json file which describes the item/block model(s), and points to the location of the texture for the item/block. When it looks like that, that means it failed to locate the json, or there is something fundamentally wrong with it.
-
I am trying to use Capabilities to add another slot to the Player's inventory. To do so, I am using an AttachCapabilitiesEvent<Entity> event. After checking that event.getObject() is an instance of EntityPlayer, I am attempting to retrieve EntityPlayer.inventory, and pass it to the constructor for my capability, which is using it to construct a Slot. The problem is, a NPE exception is thrown while constructing the slot, because EntityPlayer.inventory is null. Why?? Am I missing something major here, or is this some sort of bug...
-
omg thank you it worked! no more twisted convoluted dependency management!
-
oh? I'll try that
-
I put the decompiled jars into the libs folder. it's as if I hadn't put them in there, gradle ignores them.
-
Doesn't work.
-
Ok, so I have my mod called BottleOBlood. now, it's dependant on CoFHCore and Enviromine. I have always had so much trouble with dependencies, my current method is a great big hack job, and now it suddenly stopped working. I just want to know, what is the simplest way to add dependencies for my mod in the form of decompiled jars.