From 8338339b371770237d80b8397d8b0e2d00ab3c79 Mon Sep 17 00:00:00 2001 From: Krakenied Date: Fri, 31 May 2024 13:41:49 +0200 Subject: Add removed constructor back --- .../com/leonardobishop/quests/common/tasktype/TaskType.java | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'common/src') diff --git a/common/src/main/java/com/leonardobishop/quests/common/tasktype/TaskType.java b/common/src/main/java/com/leonardobishop/quests/common/tasktype/TaskType.java index 15946c92..b05e5ab8 100644 --- a/common/src/main/java/com/leonardobishop/quests/common/tasktype/TaskType.java +++ b/common/src/main/java/com/leonardobishop/quests/common/tasktype/TaskType.java @@ -48,6 +48,17 @@ public abstract class TaskType { this.configValidators = new HashSet<>(); } + /** + * Constructs a TaskType with the specified type, author, and description. + * + * @param type the name of the task type, should not contain spaces + * @param author the name of the person (or people) who wrote it + * @param description a short, simple description of the task type + */ + public TaskType(final @NotNull String type, final @Nullable String author, final @Nullable String description) { + this(type, author, description, new String[0]); + } + /** * Constructs a TaskType with the specified type. * -- cgit v1.2.3-70-g09d2