Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

SuperKael

Forge Modder
  • Content Count

    66
  • Joined

  • Last visited

Community Reputation

7 Neutral

About SuperKael

  • Rank
    Stone Miner

Converted

  • Gender
    Undisclosed
  • Personal Text
    I only work with 1.7.10
  1. 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!
  2. 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...
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. 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.
  8. 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.
  9. 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...
  10. omg thank you it worked! no more twisted convoluted dependency management!
  11. I put the decompiled jars into the libs folder. it's as if I hadn't put them in there, gradle ignores them.
  12. 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.
  13. 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.
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.