Jump to content

shadowfacts

Forge Modder
  • Posts

    588
  • Joined

  • Last visited

Everything posted by shadowfacts

  1. In toByes you write the two ints and the String you're sending to the ByteBuf and in fromBytes you read the two ints and the String from the ByteBuffer. @Override public void fromBytes(ByteBuf buf) { recipeID = buf.readInt(); stationID = buf.readInt(); category = ByteBufUtils.readUTF8String(buf); } @Override public void toBytes(ByteBuf buf) { buf.writeInt(recipeID); buf.writeInt(stationID); ByteBufUtils.writeUTF8String(buf, category); }
  2. You can use GlStateManager to translate the text like so: GlStateManager.pushMatrix(); GlStateManager.translatef(0, 0, 50); // draw text GlStateManager.popMatrix(); To those whom it may concern, perhaps there could be an ItemStackRenderEvent fired every time an ItemStack is rendered, no matter what inventory.
  3. In item xy's update method, after updating the timer, you can check if the timer is zero, and if so, remove the stack from the players inventory and add a stack containing item z. You can listen for ItemTossEvent and check if the EntityItem contains a stack with item xy.
  4. I'm trying to setup a 1.8.8 workspace and, in both my workspace and the latest MDK, the StructureMineshaftPieces patch fails. This is the console output along with my Gradle configuration files. I attempted to debug this by looking at the StructureMineshaftPieces patch on the 1.8.8 branch of Forge but that's only served to make me more confused. According to (my interpretation of) the Gradle output, the problem is that the target for the patch: j = 1; } - int k; - for(lvt_5_1_ = 0; k < this.field_74887_e.func_78883_b(); k = k + 4) { + for(int k = 0; k < this.field_74887_e.func_78883_b(); k = k + 4) { k = k + p_74861_3_.nextInt(this.field_74887_e.func_78883_b()); if(k + 3 > this.field_74887_e.func_78883_b()) { break; cannot be found, however this section occurs nowhere in the patch file.
  5. In gradle/wrapper/gradle.properties, update the distributionUrl to point to Gradle 2.3. Replace whatever version it currently says with 2.3.
  6. I looks unlikely that Chicken Bones is going to update NEI to 1.8.8. For something with similar functionality, you can look at mezz's JustEnoughItems which provides a light subset of the functionality of NEI, primarily recipe viewing.
  7. What? I don't understand what you are saying, can you please rephrase it?
  8. Are you ever initializing the inventory array?
  9. You don't need special inventory detection code. Just use the normal IEnergyContainerItem and it should work with things like the Wireless Charger and Energetic Infuser.
  10. Can you post the whole stacktrace? Last time I checked (a couple months ago) Nashorn was loading fine. Also, is this in the dev-env or normal?
  11. What I did for my project was to create wrappers for everything the script-writer would need. This way FG would reobfuscate the internal references to MC code but the names of my wrappers would stay the same. However, this may not be feasible if you want to provide access to a large amount of stuff. P.S. Do you know if Nashorn has been updated yet so the ClassFilter interface exists in the JRE not just the JDK? Edit: P.P.S. Feel free to look at/reuse my code.
  12. In that case: OP, please specify if you're trying to run a client or a server.
  13. Correct me if I'm wrong, but I think what you're trying to do is launch the Forge universal jar by double-clicking it and receiving this error. This is wrong. If you need to install Forge, go to files.minecraftforge.net and download and run the installer jar. If you need to launch Minecraft with Forge, first make sure you've installed Forge and then use the Vanilla launcher to launch Minecraft with the Forge profile.
  14. Possibly. It is often used to determine what would happen without actually executing that action. e.g. determine how much energy could be extracted without actually extracting it, or determining how much fluid can be inserted into a container without actually inserting it.
  15. The name of your blockstate should be chance_block, you forgot the underscore.
  16. Well if you don't know what would be in your API or what it would be used for, then you shouldn't be making an API
  17. http://forgegradle.readthedocs.org/en/FG_1.2/user-guide/shading/ If you do shade it into your jar, you need to read the project's license and make sure you have permission to redistribute it before doing so. @Optional wouldn't work because sqlite-jdbc isn't a mod.
  18. Tabula is quite good, it runs on all the same platforms as MC because it's a MC mod (both 1.7.10 and 1..
  19. Ernio, if you're willing to depend on Java 8, you should look into Nashorn. It's a very good JavaScript engine that's built into JavaSE, so you wouldn't have to reinvent the wheel.
  20. 1.7 or 1.8? There's a huuuge difference between the two for what you are trying to accomplish?
  21. 1. Stop with the weird-ass formatting 2. What do you mean "there are no Minecraft files in the workspace" 3. How did you setup your workspace?
  22. Re-run gradlew idea so FG adds the jar as a compile time dep to the IDEA project.
  23. 15? I repeat, you're not going to learn if you just pay someone to do it for you.
×
×
  • Create New...

Important Information

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