2018-09-12 01:29:49 +02:00
|
|
|
package com.minelittlepony.unicopia.spell;
|
|
|
|
|
|
|
|
import net.minecraft.dispenser.IBlockSource;
|
|
|
|
import net.minecraft.util.math.BlockPos;
|
|
|
|
import net.minecraft.util.EnumFacing;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Represents an object with an action to perform when dispensed from a dispenser.
|
2018-09-21 17:53:33 +02:00
|
|
|
*
|
2018-09-12 01:29:49 +02:00
|
|
|
*/
|
2018-09-21 17:53:33 +02:00
|
|
|
public interface IDispenceable extends IMagicEffect {
|
|
|
|
|
2018-09-12 01:29:49 +02:00
|
|
|
/**
|
|
|
|
* Called when dispensed.
|
2018-09-21 17:53:33 +02:00
|
|
|
*
|
2018-09-12 01:29:49 +02:00
|
|
|
* @param pos Block position in front of the dispenser
|
|
|
|
* @param facing Direction of the dispenser
|
|
|
|
* @param source The dispenser currently dispensing
|
2019-01-22 17:39:30 +01:00
|
|
|
* @param affinity The affinity of the casting artifact
|
2018-09-12 01:29:49 +02:00
|
|
|
* @return an ActionResult for the type of action to perform.
|
|
|
|
*/
|
2019-01-22 17:39:30 +01:00
|
|
|
public SpellCastResult onDispenced(BlockPos pos, EnumFacing facing, IBlockSource source, SpellAffinity affinity);
|
2018-09-12 01:29:49 +02:00
|
|
|
}
|