mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-25 06:17:59 +01:00
22 lines
789 B
Java
22 lines
789 B
Java
package com.minelittlepony.unicopia.magic;
|
|
|
|
import net.minecraft.util.math.BlockPointer;
|
|
import net.minecraft.util.math.BlockPos;
|
|
import net.minecraft.util.math.Direction;
|
|
|
|
/**
|
|
* Represents an object with an action to perform when dispensed from a dispenser.
|
|
*/
|
|
public interface DispenceableMagicEffect extends MagicEffect {
|
|
|
|
/**
|
|
* Called when dispensed.
|
|
*
|
|
* @param pos Block position in front of the dispenser
|
|
* @param facing Direction of the dispenser
|
|
* @param source The dispenser currently dispensing
|
|
* @param affinity The affinity of the casting artifact
|
|
* @return an ActionResult for the type of action to perform.
|
|
*/
|
|
CastResult onDispenced(BlockPos pos, Direction facing, BlockPointer source, Affinity affinity);
|
|
}
|