From 94bf383d234a317ff86b1c653e85e5db5cc95fa5 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Wed, 27 Jan 2021 09:56:23 +0000 Subject: [PATCH] Added setType to DropManager --- .../willfp/eco/util/drops/internal/DropManager.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/eco-util/src/main/java/com/willfp/eco/util/drops/internal/DropManager.java b/eco-util/src/main/java/com/willfp/eco/util/drops/internal/DropManager.java index 5d80ffbe0..f66b8aa5e 100644 --- a/eco-util/src/main/java/com/willfp/eco/util/drops/internal/DropManager.java +++ b/eco-util/src/main/java/com/willfp/eco/util/drops/internal/DropManager.java @@ -2,14 +2,24 @@ import lombok.Getter; import lombok.experimental.UtilityClass; +import org.jetbrains.annotations.NotNull; @UtilityClass public final class DropManager { /** * The currently used type, or implementation, of {@link AbstractDropQueue}. *

- * Standard by default, used if drops.collate key is not present in config. + * Default is {@link DropQueueType#COLLATED}, however this can be changed. */ @Getter private DropQueueType type = DropQueueType.COLLATED; + + /** + * Sets the type of Drop Queue to be used. + * + * @param type The type. + */ + public static void setType(@NotNull final DropQueueType type) { + DropManager.type = type; + } }