LZ-17: Add initial block restore queue registry, and a registration event

This commit is contained in:
zontreck 2024-04-11 01:21:13 -07:00
parent 3302ab14b8
commit c03261fd7a
2 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,21 @@
package dev.zontreck.libzontreck.memory.world;
import java.util.*;
/**
* DANGER: DO NOT USE THIS CLASS DIRECTLY
*/
public class BlockRestoreQueueRegistry
{
private static Map<String, BlockRestoreQueue> QUEUES = new HashMap<>();
/**
* Internal use only
*
* @see dev.zontreck.libzontreck.events.BlockRestoreQueueRegistrationEvent
* @param queue The queue to register
*/
public static void addQueue(BlockRestoreQueue queue) {
QUEUES.put(queue.getRestoreQueueName(), queue);
}
}