From 6536aba6ba9d5e9f6aa33a6437ce1a993b7f3382 Mon Sep 17 00:00:00 2001 From: Hydrox6 Date: Fri, 8 Oct 2021 12:56:28 +0100 Subject: [PATCH] api: add group ironman account types --- .../net/runelite/api/vars/AccountType.java | 23 ++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/runelite-api/src/main/java/net/runelite/api/vars/AccountType.java b/runelite-api/src/main/java/net/runelite/api/vars/AccountType.java index 63c5e953f7..a25a52ed82 100644 --- a/runelite-api/src/main/java/net/runelite/api/vars/AccountType.java +++ b/runelite-api/src/main/java/net/runelite/api/vars/AccountType.java @@ -44,16 +44,33 @@ public enum AccountType /** * Hardcore ironman account type. */ - HARDCORE_IRONMAN; + HARDCORE_IRONMAN, + /** + * Group ironman account type + */ + GROUP_IRONMAN, + /** + * Hardcore group ironman account type + */ + HARDCORE_GROUP_IRONMAN; /** - * Checks whether this type is an ironman. + * Checks whether this type is a non-group ironman. * - * @return {@code true} if the type is any of the ironman types. + * @return {@code true} if the type is any of the non-group ironman types. */ public boolean isIronman() { return this.ordinal() >= IRONMAN.ordinal() && this.ordinal() <= HARDCORE_IRONMAN.ordinal(); } + /** + * Checks whether this type is a group ironman. + * + * @return {@code true} if the type is either of the group ironman types. + */ + public boolean isGroupIronman() + { + return this.ordinal() >= GROUP_IRONMAN.ordinal() && this.ordinal() <= HARDCORE_GROUP_IRONMAN.ordinal(); + } }