-
Optional.Interface cannot be resolved to a type.
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.
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
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.
-
EntityPlayer.inventory null? (1.12.2)
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.
-
EntityPlayer.inventory null? (1.12.2)
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.
-
EntityPlayer.inventory null? (1.12.2)
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.
-
[1.12.2] Modding with 1.12.2; my items and blocks have no texture at all
Well yeah. I didn't notice that the log was there, but my point still stands. That error can be caused be either no json, or a bad one.
-
[1.12.2] Modding with 1.12.2; my items and blocks have no texture at all
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.
-
EntityPlayer.inventory null? (1.12.2)
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...
-
Gradle Dependencies help
omg thank you it worked! no more twisted convoluted dependency management!
-
Gradle Dependencies help
oh? I'll try that
-
Gradle Dependencies help
I put the decompiled jars into the libs folder. it's as if I hadn't put them in there, gradle ignores them.
-
Gradle Dependencies help
Doesn't work.
-
Gradle Dependencies help
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.
-
[1.8] Is there some way or trick to get items in alphabetical order?
Try this Arrays.sort(arrayOfItems, new Comparator<ItemStack>() { public int compare(ItemStack item1, ItemStack item2) { return item1.getName().compareTo(item2.getName()); } }); P.S: this is pretty much just java code. it really isn't that hard.
IPS spam blocked by CleanTalk.