Add getter for SpellBuff#potionSet
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user