User Tools

Site Tools


tutorial:side

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
tutorial:side [2019/05/26 15:13] – [Logical Server] Made things a little easier to understand jamieswhiteshirttutorial:side [2019/05/26 15:32] – [Side] Put client and server in quotes when disambiguating the different types of sides jamieswhiteshirt
Line 4: Line 4:
 In the past, there used to be a simple division into the client and the server, but with the switch of the single player game mode to an internal dedicated server, this simple model doesn't fit anymore. Thus, we have two dimensions when distinguishing between client and server in Minecraft. These are the physical and logical sides. In the past, there used to be a simple division into the client and the server, but with the switch of the single player game mode to an internal dedicated server, this simple model doesn't fit anymore. Thus, we have two dimensions when distinguishing between client and server in Minecraft. These are the physical and logical sides.
  
-For both types of sides, there are client and server. However, a logical client is not equivalent to a physical client, and a logical server is not equivalent to a physical server either. A logical client is instead **hosted by** a physical client, and a logical server is hosted by either a physical server or a physical client.+For both types of sides, there is a 'clientand a 'server'. However, a logical client is not equivalent to a physical client, and a logical server is not equivalent to a physical server either. A logical client is instead **hosted by** a physical client, and a logical server is hosted by either a physical server or a physical client.
  
 The logical sides are central in the architecture of both distributions of Minecraft. Therefore, an understanding of logical sides is vital for any mod development with Fabric. The logical sides are central in the architecture of both distributions of Minecraft. Therefore, an understanding of logical sides is vital for any mod development with Fabric.
Line 71: Line 71:
 ===== Communication===== ===== Communication=====
  
-The only correct way to exchange data between a client and a server are packets. The packets (which [[https://wiki.vg]] documents) are sent between logical clients and logical servers, not physical sides. Mods can add packets to transfer custom information between two logical sides.+The only correct way to exchange data between logical clients and servers by exchanging packets. The packets (as documented on [[https://wiki.vg]]) are sent between logical clients and logical servers, not physical sides. Mods can add packets to transfer custom information between two logical sides. Packets are exchanged in-memory for a logical client connected to its own integrated server, and exchanged over a networking protocol otherwise.
  
 Logical clients send C2S (Client-To-Server) packets to the logical server. Logical clients send C2S (Client-To-Server) packets to the logical server.
 The logical server sends S2C (Server-To-Client) packets the logical clients. The logical server sends S2C (Server-To-Client) packets the logical clients.
-Packets are sent be a write method in a network thread and received by a call to a read method in a network thread.+Packets are sent by a write method in a network thread and received by a call to a read method in a network thread.
  
 For more details on how to handle networking, see [[tutorial:networking|this article]]. For more details on how to handle networking, see [[tutorial:networking|this article]].
tutorial/side.txt · Last modified: 2022/04/13 04:32 by 127.0.0.1