From 7709c1ccb13f95264dc3e6f0c7ff5b33a2a86f52 Mon Sep 17 00:00:00 2001 From: Dr Theo <71725814+DrTheodor@users.noreply.github.com> Date: Tue, 3 Sep 2024 18:55:20 +0300 Subject: [PATCH] Update components.md --- content/development/components.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/development/components.md b/content/development/components.md index 74ac6f4..ca26e39 100644 --- a/content/development/components.md +++ b/content/development/components.md @@ -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. @@ -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). \ No newline at end of file +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).