tutorial:networking
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
tutorial:networking [2023/01/11 19:25] – [Example: Why is networking important?] netuserget | tutorial:networking [2023/04/16 01:01] – Make sure to show how to make the ID fx | ||
---|---|---|---|
Line 90: | Line 90: | ||
Since we are not writing any data to the packet, for now, we will send the packet with an empty payload. A buf with an empty payload may be created using '' | Since we are not writing any data to the packet, for now, we will send the packet with an empty payload. A buf with an empty payload may be created using '' | ||
+ | |||
+ | (Note that the identifier we will put in a class accessible from both sides) | ||
+ | |||
+ | <code java> | ||
+ | public class TutorialNetworkingConstants { | ||
+ | // Save the id of the packet so we can reference it later | ||
+ | public static final Identifier HIGHLIGHT_PACKET_ID = new Identifier(" | ||
+ | } | ||
+ | </ | ||
<code java [enable_line_numbers=" | <code java [enable_line_numbers=" |
tutorial/networking.txt · Last modified: 2024/05/04 19:51 by bluemeanial