diff options
| author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2022-09-22 17:47:39 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-22 17:47:39 +0200 |
| commit | c055595e0a35accf1a8a4742286a7b267037ac45 (patch) | |
| tree | c0f4cf03e5d41010567c2b2cac02ffc0269e2ef7 /src/main/java/io/github/moulberry/notenoughupdates/util/ItemUtils.java | |
| parent | fc949693dac0acb9521867476605d98ff5bde5ec (diff) | |
| download | notenoughupdates-c055595e0a35accf1a8a4742286a7b267037ac45.tar.gz notenoughupdates-c055595e0a35accf1a8a4742286a7b267037ac45.tar.bz2 notenoughupdates-c055595e0a35accf1a8a4742286a7b267037ac45.zip | |
Coop Soulbound kuudra drops (#299)
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/util/ItemUtils.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/util/ItemUtils.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/util/ItemUtils.java b/src/main/java/io/github/moulberry/notenoughupdates/util/ItemUtils.java index adf09161..c7c7d4b6 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/util/ItemUtils.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/util/ItemUtils.java @@ -120,4 +120,8 @@ public class ItemUtils { return enchId; } + public static boolean isSoulbound(ItemStack item) { + return ItemUtils.getLore(item).stream() + .anyMatch(line -> line.equals("§8§l* §8Co-op Soulbound §8§l*") || line.equals("§8§l* Soulbound §8§l*")); + } } |
