Jump to content

Earthcomputer

Forge Modder
  • Posts

    114
  • Joined

  • Last visited

Everything posted by Earthcomputer

  1. Better to use Predicates here: public void removeRecipe(Predicate<IRecipe> shouldRemove) { Iterator iterator = CraftingManager.getInstance().getRecipeList().iterator(); while (iterator.hasNext()) if (shouldRemove.apply((IRecipe) iterator.next())) iterator.remove(); } Hope that helps
  2. K I'll do that hopefully I'll have my code up by tonight (GMT)
  3. I would, but I can't find any other way to override handleMouseInput. I'll post my code when I get to my computer
  4. I want to display more information about the worlds in the world list. I've come up with a workaround by extending GuiSelectWorld
  5. I cannot use reflection for this. I need to extend GuiSelectWorld.List, which is package-private
  6. How do I change the modifiers of an inner class, such as GuiSelectWorld.List, with an access transformer? Is it possible?
  7. I'm having the same problem with compiling my mod offline. I can compile it fine online. I'm no gradle expert, but I'm assuming it has something to do with some http URLs in the dependencies. I guess you can just download these files then use file:/// in your URLs instead? Edit: have you tried gradlew build --offline
  8. Thanks for that. I found a set of excel files matching my description. Are these specifically for 1.8, though (I'm assuming they are)?
  9. Override the method getItemDropped in the block class
  10. In 1.7.10 there were a couple of excel files which contained a list of them. I can't find it in 1.8. Does anyone know where to find a Searge-to-deobfuscated method/field mapping in 1.8?
  11. Edited with pastes. They look OK
  12. Sorry about that, that's the forum. It looks fine in Eclipse. I'll try and put it up on pastebin and see if it's any better on there
  13. What do you mean? getInventoryCrafting is there to get the InventoryCrafting object required by SlotCrafting. Am I missing something? EDIT: If you're talking about the craftMatrix field in SlotCrafting (which I don't think you are), that's private and I don't see any getters
  14. I've been having this problem for quite a while now, and no matter what I do there is a certain inventory slot that updates on the server side but not on the client side. Shouldn't detectAndSendChanges automatically sort this problem out? The progress bars are synchronized fine Here is my container class. The problematic slot is the output slot (ID 9): This is my tile entity: Pastebin: Container: http://pastebin.com/jeUuyprm Tile entity: http://pastebin.com/0KCpDqj3 Any idea what's going wrong? Thanks in advance for answers
  15. You need to change the version of ForgeGradle in the build.gradle file
  16. Then you can use the tick update event for the player
  17. I don't know whether it's the preferred way to do it in Minecraft, but I know OpenGL has its own I/O system for that kind of thing
  18. I got it working using packets - it wasn't so much the inventory slot which were the problem, it was the craftTime which wasn't synchronized (it was being displayed on the GUI client side) Thanks for your help diesieben07
  19. Show us your item models
  20. Oh OK, I'll play around with that, see if I can get it working. It might involve sending packets which I was hoping to avoid, but there should be a simpler way
  21. Got to go now, so I think I'll post this issue tomorrow on a different thread
  22. The client and server try to craft the items at different times, and refresh only when I relog
  23. Okay so I've solved that problem, but I'm now getting some syncronization issues with the client and server. Here's my updated tile entity:
  24. Oh I see! DERP!!! I wish I could spot these problems as quickly as you
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.