Add getter for SpellBuff#potionSet

This commit is contained in:
Electroblob77
2020-07-27 12:32:05 +01:00
parent 476b7a6a45
commit eba219bcce
@@ -19,6 +19,7 @@ import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Set;
import java.util.function.Supplier;
@@ -85,6 +86,11 @@ public class SpellBuff extends Spell {
}
}
/** Returns an unmodifiable view of the set of {@link Potion} objects that this spell applies to its caster. */
public Set<Potion> getPotionSet(){
return Collections.unmodifiableSet(potionSet);
}
// Potion-specific equivalent to defining the identifiers as constants
protected static String getDurationKey(Potion potion){