mirror of
https://github.com/LegacyModdingMC/ChunkAPI.git
synced 2026-11-11 16:07:37 +00:00
netcode works
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user