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 voidinit(net.neoforged.bus.api.IEventBus modBus) static 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.
-
init
@Internal public static void init(net.neoforged.bus.api.IEventBus modBus) -
readSyncPacket
-