netcode works

This commit is contained in:
FalsePattern committed 2023-03-28 23:58:39 +02:00
1 parent 56e22834c7
commit 17183b3824
24 files changed
+827 -161

No files matched your search

@@ -5,12 +5,22 @@ import com.falsepattern.chunk.api.exception.ManagerRegistrationException;
/**
* This class is used to register ChunkDataManagers.
* @see ChunkDataManager
*/
public class ChunkDataRegistry {
public static void registerDataManager(ChunkDataManager manager) throws ManagerRegistrationException {
/**
* Registers a ChunkDataManager. Only do this during the preInit phase.
* @param manager The manager to register.
* @throws ManagerRegistrationException If the manager is already registered.
*/
public static void registerDataManager(ChunkDataManager<?> manager) throws ManagerRegistrationException {
ChunkDataRegistryImpl.registerDataManager(manager);
}
/**
* Disables a ChunkDataManager. Only do this during the preInit phase.
* @param id The id of the manager to disable.
*/
public static void disableDataManager(String id) {
ChunkDataRegistryImpl.disableDataManager(id);
}