Package codechicken.lib.config
Class ConfigSyncManager
java.lang.Object
codechicken.lib.config.ConfigSyncManager
Created by covers1624 on 19/5/22.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidhandleLogin(BiConsumer<String, Supplier<PacketCustom>> consumer) static voidstatic voidreadSyncPacket(PacketCustom packet) static voidregisterSync(net.minecraft.resources.ResourceLocation key, ConfigTag tag) Registers the specifiedConfigTagfor syncing.
-
Constructor Details
-
ConfigSyncManager
public ConfigSyncManager()
-
-
Method Details
-
registerSync
Registers the specifiedConfigTagfor syncing.This must be registered on both the client and server.
- Parameters:
key- The unique id to associate this tag.tag- The Tag to sync.
-
handleLogin
-
readSyncPacket
-
onClientDisconnected
public static void onClientDisconnected()
-