mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-03 06:28:49 +00:00
refactor: store invulnerability as tag, fix #687
This commit is contained in:
6 files changed
+32
-34
No files matched your search
@@ -228,19 +228,6 @@ public interface HuskHomes extends Task.Supplier, EventDispatcher, SavePositionP
|
||||
return this.getCurrentlyOnWarmup().contains(userUuid);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
Set<UUID> getCurrentlyInvulnerable();
|
||||
|
||||
/**
|
||||
* Returns if the given user is currently invulnerable and if it should be removed.
|
||||
*
|
||||
* @param uuid the user to check.
|
||||
* @return if the user is currently invulnerable.
|
||||
*/
|
||||
default boolean isInvulnerable(@NotNull UUID uuid) {
|
||||
return this.getCurrentlyInvulnerable().contains(uuid);
|
||||
}
|
||||
|
||||
/**
|
||||
* Log a message to the console.
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user