
Earthcomputer
Forge Modder-
Posts
114 -
Joined
-
Last visited
Everything posted by Earthcomputer
-
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
-
[1.8] Changing inner class with access transformer
Earthcomputer replied to Earthcomputer's topic in Modder Support
K I'll do that hopefully I'll have my code up by tonight (GMT) -
[1.8] Changing inner class with access transformer
Earthcomputer replied to Earthcomputer's topic in Modder Support
I would, but I can't find any other way to override handleMouseInput. I'll post my code when I get to my computer -
[1.8] Changing inner class with access transformer
Earthcomputer replied to Earthcomputer's topic in Modder Support
I want to display more information about the worlds in the world list. I've come up with a workaround by extending GuiSelectWorld -
[1.8] Changing inner class with access transformer
Earthcomputer replied to Earthcomputer's topic in Modder Support
I cannot use reflection for this. I need to extend GuiSelectWorld.List, which is package-private -
How do I change the modifiers of an inner class, such as GuiSelectWorld.List, with an access transformer? Is it possible?
-
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
-
[1.8] [Solved] Where to find deobfuscated method/field list
Earthcomputer replied to Earthcomputer's topic in Modder Support
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)? -
[1.8] Item and block drops - leaves [[Solved]]
Earthcomputer replied to PSmithgamer's topic in Modder Support
Override the method getItemDropped in the block class -
[1.8] TileEntity Slot not synchronized
Earthcomputer replied to Earthcomputer's topic in Modder Support
Edited with pastes. They look OK -
[1.8] TileEntity Slot not synchronized
Earthcomputer replied to Earthcomputer's topic in Modder Support
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 -
[1.8] TileEntity Slot not synchronized
Earthcomputer replied to Earthcomputer's topic in Modder Support
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 -
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
-
You need to change the version of ForgeGradle in the build.gradle file
-
[1.7.10] How to detect when Right Click is not pressed.
Earthcomputer replied to noahc3's topic in Modder Support
Then you can use the tick update event for the player -
[1.7.10] How to detect when Right Click is not pressed.
Earthcomputer replied to noahc3's topic in Modder Support
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 -
[1.8] [Solved] Autocrafting Table not crafting item
Earthcomputer replied to Earthcomputer's topic in Modder Support
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 -
[1.8] [Solved] Autocrafting Table not crafting item
Earthcomputer replied to Earthcomputer's topic in Modder Support
Okay thanks -
Show us your item models
-
[1.8] [Solved] Autocrafting Table not crafting item
Earthcomputer replied to Earthcomputer's topic in Modder Support
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 -
[1.8] [Solved] Autocrafting Table not crafting item
Earthcomputer replied to Earthcomputer's topic in Modder Support
Got to go now, so I think I'll post this issue tomorrow on a different thread -
[1.8] [Solved] Autocrafting Table not crafting item
Earthcomputer replied to Earthcomputer's topic in Modder Support
The client and server try to craft the items at different times, and refresh only when I relog -
[1.8] [Solved] Autocrafting Table not crafting item
Earthcomputer replied to Earthcomputer's topic in Modder Support
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: -
[1.8] [Solved] Autocrafting Table not crafting item
Earthcomputer replied to Earthcomputer's topic in Modder Support
Oh I see! DERP!!! I wish I could spot these problems as quickly as you