tutorial:networking
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
tutorial:networking [2020/12/10 19:13] – Rewrite for networking v1 - v0 has been moved i509vcb | tutorial:networking [2020/12/14 00:57] – Transposed words in identifier PlayClientNetworking zulrang | ||
---|---|---|---|
Line 76: | Line 76: | ||
// BAD CODE: DON'T EVER DO THIS! | // BAD CODE: DON'T EVER DO THIS! | ||
ClientBlockHighlighting.highlightBlock(MinecraftClient.getInstance(), | ClientBlockHighlighting.highlightBlock(MinecraftClient.getInstance(), | ||
- | return TypedActionResult.success(user.getHandStack(hand)); | + | return TypedActionResult.success(user.getStackInHand(hand)); |
} | } | ||
</ | </ | ||
Line 107: | Line 107: | ||
In your client entrypoint, you will register the receiver for your packet using '' | In your client entrypoint, you will register the receiver for your packet using '' | ||
- | The '' | + | The '' |
The example below implements the play channel handler as a lambda: | The example below implements the play channel handler as a lambda: |
tutorial/networking.txt · Last modified: 2024/05/04 19:51 by bluemeanial