Skip to content

Commit

Permalink
Update components.md
Browse files Browse the repository at this point in the history
  • Loading branch information
DrTheodor authored Sep 3, 2024
1 parent 09e4818 commit 7709c1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/development/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ All components can receive a server tick event (serverside only).
To do that, you can just implement the `TardisTickable` interface and override the default `#tick(MinecraftServer)` method.

# Synching
It's recommended to use [V2 properties](properties) for this, but in case your data structure is too complex to be implemented using the properties API, you can use this method.
It's recommended to use [V2 properties](../properties) for this, but in case your data structure is too complex to be implemented using the properties API, you can use this method.

You can call `TardisComponent#sync` to force sync the full component data _from server to client_. It won't work the other way around.

Expand All @@ -94,4 +94,4 @@ You can change the strategy by supplying arguments to the annotation via an enum

If you choose the `FILE` strategy, the data will not be persisted and will not be saved to the file, however it will sync.

If you choose the `NETWORK` strategy, the data will be saved to the data file, but it won't be sent over the network, meaning that the client will get the default values for the fields (`0` for numbers, `false` for booleans, `null` for objects, etc).
If you choose the `NETWORK` strategy, the data will be saved to the data file, but it won't be sent over the network, meaning that the client will get the default values for the fields (`0` for numbers, `false` for booleans, `null` for objects, etc).

0 comments on commit 7709c1c

Please sign in to comment.