Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/27/20 in all areas

  1. Rendering and handling keyboard input should only be done on the client. Logic (pretty much everything else) should be done on the sever. However, to make stuff look smoother, vanilla runs some logic on both client and server (so that it appears to run smoothly on the client while the real result is synced a little bit later from the server)
    1 point
  2. 1 point
  3. 1 point
  4. You can use a lambda for this Also, use @Override https://stackoverflow.com/questions/94361/when-do-you-use-javas-override-annotation-and-why Your subscription looks right, place a breakpoint to make sure it gets called though.
    1 point
  5. You don’t ever sync the values. Read the Documentation. Here’s an example of a TileEntity that syncs it’s energy every time it changes and here’s an example of a TileEntity that syncs its smeltTime whenever you’re in its GUI (see its container for the syncing)
    1 point
  6. You might be able to do this by using the RenderPlayerEvent and/or replacing the player's model
    1 point
  7. You're currently checking for entities at (0, 0, 0). You need to offset the box's position by the position of the block being clicked. As a side note, you should also never mix tabs and spaces for your indentation. Choose one and treat the other like plague.
    1 point
×
×
  • Create New...

Important Information

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