2018-09-19 09:09:30 +02:00
|
|
|
package com.minelittlepony.unicopia.item;
|
|
|
|
|
2019-02-04 19:29:37 +01:00
|
|
|
import com.minelittlepony.unicopia.spell.IAligned;
|
2019-01-22 17:39:30 +01:00
|
|
|
import com.minelittlepony.unicopia.spell.SpellAffinity;
|
|
|
|
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
|
2019-02-04 19:29:37 +01:00
|
|
|
public interface IMagicalItem extends IAligned {
|
2018-09-19 09:09:30 +02:00
|
|
|
/**
|
|
|
|
* If true this item serves as host to its own inner dimensional space.
|
|
|
|
* Bag of Holding will explode if you try to store items of this kind inside of it.
|
|
|
|
*/
|
|
|
|
default boolean hasInnerSpace() {
|
|
|
|
return false;
|
|
|
|
}
|
2019-01-22 17:39:30 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the affinity of this magical artifact. Either good, bad, or unaligned.
|
|
|
|
* What this returns may have effects on the behaviour of certain spells and effects.
|
|
|
|
*/
|
|
|
|
default SpellAffinity getAffinity(ItemStack stack) {
|
2019-02-04 19:29:37 +01:00
|
|
|
return getAffinity();
|
2019-01-22 17:39:30 +01:00
|
|
|
}
|
2018-09-19 09:09:30 +02:00
|
|
|
}
|