diff options
| author | Krakenied <Krakenied1@gmail.com> | 2024-05-31 13:41:49 +0200 |
|---|---|---|
| committer | Leonardo Bishop <13875753+LMBishop@users.noreply.github.com> | 2024-06-03 18:48:22 +0100 |
| commit | 8338339b371770237d80b8397d8b0e2d00ab3c79 (patch) | |
| tree | 7cad96afac553f54cb1a477b443fee8d5c031eb8 /common/src/main/java | |
| parent | 011fa31ef4a2f577bbe233959fc9cb255f549ce4 (diff) | |
Add removed constructor back
Diffstat (limited to 'common/src/main/java')
| -rw-r--r-- | common/src/main/java/com/leonardobishop/quests/common/tasktype/TaskType.java | 11 |
1 files changed, 11 insertions, 0 deletions
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 @@ -49,6 +49,17 @@ public abstract class TaskType { } /** + * 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. * * @param type the name of the task type, should not contain spaces |
