Jump to content

DavidM

Members
  • Posts

    1830
  • Joined

  • Last visited

  • Days Won

    12

Everything posted by DavidM

  1. Google has a JSON library, which is included in your workspace.
  2. At this point we would need logs in order to assist you, as they provide more information on the problem. Please click on the yes button and provide the debug.log (its path being logs/debug.log) from the client.
  3. That is not the correct way to build your mod. Run gradlew build to build your mod. Refer to the documentation for more details.
  4. That is not the correct way to post images. Please upload the image, or use an image sharing site like imgur.
  5. Fine then. Replace with public void render(Breadling entity, float f, float f1, float f2, float f3, float f4, float f5) { . The signature (parameters, etc) of the overriding method must match the method it is overriding.
  6. You might want to check out these: https://www.tutorialspoint.com/java/java_generics.htm https://www.java67.com/2012/08/what-is-method-overriding-in-java-example-tutorial.html
  7. Problem with this line. Hint: the type of the first parameter is wrong. Check the render method in the superclass.
  8. Check out ClientPlayerEntity::movementInput.
  9. Can servers be pirated? I thought only client needs purchasing.
  10. Thanks for the tip. However I am concerned that this might be concerned hacky (although I am not aware of the direct consequences) due to the direct deletion of part of the class on certain side to avoid class loading.
  11. Thank you for the explaination. I was previously confused about the difference between a reference to a class and the loading of a class. Does this mean that the only appropiate place to load client-only classes in modern versions of Minecraft is client-only event bus subscribers?
  12. I previously thought that class loading only occurs when a class is referenced anywhere as long as the class it is referenced is loaded. However, I came across this post today: and if I understood correctly, casting would trigger class loading. However, I am slightly confused by this: Even if OP changed the type of player to ClientPlayerEntity, wouldn't that still cause the loading of the class? Similarly, the OP in the linked post called Minecraft::getMinecraft in his packet code, which is loaded on both sides. Despite the method being called in enqueued work, would this still cause a crash when loaded on a server?
  13. My apologies. That was a random off-topic reference.
  14. That would still make the client class load commonly. I was mistaken.
  15. Because getAllInBoxMutable returns the same MutableBlockPos every iteration step. With your current method, you are basically filling an array with the same object. To achieve what you want, simply create a new BlockPos (which is immutable) per iteration step based of the value from the iterator, then store the newly created BlockPos in your array. Also don’t randomly add try blocks when there is no error to catch.
  16. Override Block#isOpaqueCube and return false.
  17. What launcher are you using? Post a screenshot.
  18. That is my signature. Those are not directed at you specifically, but are general tips for new modders. If the debugger is not working for you, you might want to check your setup. Thr best way to learn to mod Minecraft is to read vanilla code and check out other mods' code on GitHub.
  19. Any implementation of IForgeRegistry (blocks, items, etc). These should be created during the appropiate registry event. This is basic Java syntax. If you are struggling with this then you need to learn Java before making a mod. This is not a Java forum.
  20. 1.12.2 is no longer supported on this forum. Update to a modern version of Minecraft to receive support.
  21. Please read the EAQ and post log. https://www.minecraftforge.net/forum/topic/20-rules-and-eaq-read-first-or-you-will-get-banned/
  22. Java is a static language. It has to compile before running. There must be no syntax errors. However, it sounds like you are struggling with basic Java syntax. Please learn Java before making a mod, as not knowing Java will cause unnecessary confusions.
  23. Please read the EAQ and post log.
×
×
  • Create New...

Important Information

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