From 165d079251bec62163ea14e73d2c7749f1c660b8 Mon Sep 17 00:00:00 2001 From: WinDanesz <31292708+WinDanesz@users.noreply.github.com> Date: Wed, 25 Oct 2023 10:10:20 +0200 Subject: [PATCH] Added getApplicableItems() to Spell.java --- src/main/java/electroblob/wizardry/spell/Spell.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/electroblob/wizardry/spell/Spell.java b/src/main/java/electroblob/wizardry/spell/Spell.java index 609dc4cf..b3641803 100644 --- a/src/main/java/electroblob/wizardry/spell/Spell.java +++ b/src/main/java/electroblob/wizardry/spell/Spell.java @@ -922,6 +922,11 @@ public abstract class Spell extends IForgeRegistryEntry.Impl implements C return Arrays.asList(applicableItems).contains(item); } + /** Returns the list of items this spell is applicable to. */ + public List getApplicableItems() { + return Arrays.asList(applicableItems); + } + /** * Sets which items this spell can appear on (these default to the regular spell book and scroll). * @param applicableItems The items this spell should naturally appear on (or no items at all).