Jump to content

Draco18s

Members
  • Posts

    16559
  • Joined

  • Last visited

  • Days Won

    156

Everything posted by Draco18s

  1. So you can't go open the vanilla source files and poke around for a few minutes identifying functions that you know take a world object and see what it was renamed to?
  2. Maybe figure out what class name that is? Literally everything gets passed a world object at some point...
  3. In your IDE, under Referenced Libraries.
  4. I'm sure there are a host of places in the vanilla code where it checks for things like this, why not search around. Additionally, as EntityPlayer is a subclass, the method you want may be in one of its parent classes.
  5. 1) I am pretty sure you can't 2) Something something documentation.
  6. You don't know how data packs work, do you? The tag json files are config files.
  7. By the way, for next time, your error is not "exception in thread main," it is:
  8. https://lmgtfy.app/?q=rgb+color+as+integer
  9. It always has, just that a handful of methods (mostly UI) would assume a 256x256 texture and take pixel based coordinates. It converted to 0-1 UV coordinates internally before doing the actual blitting, though.
  10. Alright then. How would you express a color as an integer?
  11. That's the name of the parameter, what's it's Type
  12. What is the signature of the method you're calling. It should tell you.
  13. Cough default: event.setCanceled(true); Cough
  14. So... renormalize the vector... https://www.khanacademy.org/computing/computer-programming/programming-natural-simulations/programming-vectors/a/vector-magnitude-normalization
  15. Or, more sensibly: vec = player.getLookVec vec.y = 0
  16. No: Why are you pushing the Z and Y values in the wrong order?
  17. This is basic OOP, you need a reference to the object that has the capability.
  18. I don't know, maybe the client can't kill entities, because the server controls that?
  19. IIRC the example is bad and won't actually compile. This worked, and should still be mostly valid for 1.16: https://github.com/Draco18s/ReasonableRealism/blob/033da26f8ba4bcd25b0911aa9775764f12d7dbbe/src/main/java/com/draco18s/harderores/HarderOres.java#L106
  20. ItemStackHandler#insert and ItemStackHandler#Extract
  21. There are better ways of handling multiple properties now instead of listing them all out. https://minecraft.fandom.com/wiki/Model#Block_states https://mcforge.readthedocs.io/en/latest/models/blockstates/introduction/ { "when": { "east": "true" }, "apply": { "model": "oak_fence_side", "y": 90, "uvlock": true } }
  22. There's only two units when dealing with rotations: - Degrees - Radians Three, if you want to count degrees(-180,180) and degrees(0,360) as different.
×
×
  • Create New...

Important Information

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