Unicopia/src/main/java/com/minelittlepony/unicopia/magic/DispenceableMagicEffect.java
2020-04-15 18:14:42 +02:00

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);
}