Class DataSync<T>
java.lang.Object
codechicken.lib.gui.modular.lib.container.DataSync<T>
This class provides a convenient way to synchronize server side data with a client side screen via the ContainerMenu
Created by brandon3055 on 09/09/2023
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDataSync(ModularGuiContainerMenu containerMenu, AbstractDataStore<T> dataStore, Supplier<T> valueGetter) -
Method Summary
-
Field Details
-
PKT_SEND_CHANGES
public static final int PKT_SEND_CHANGES- See Also:
-
-
Constructor Details
-
DataSync
public DataSync(ModularGuiContainerMenu containerMenu, AbstractDataStore<T> dataStore, Supplier<T> valueGetter)
-
-
Method Details
-
get
-
detectAndSend
public void detectAndSend()This should only ever be called server side! -
handleSyncPacket
-