Unicopia/src/main/java/com/minelittlepony/unicopia/magic/IDispenceable.java

23 lines
780 B
Java
Raw Normal View History

package com.minelittlepony.unicopia.magic;
2018-09-12 01:29:49 +02:00
import net.minecraft.util.math.BlockPointer;
2018-09-12 01:29:49 +02:00
import net.minecraft.util.math.BlockPos;
2020-01-16 12:35:46 +01:00
import net.minecraft.util.math.Direction;
2018-09-12 01:29:49 +02:00
/**
* Represents an object with an action to perform when dispensed from a dispenser.
*/
public interface IDispenceable extends IMagicEffect {
/**
* 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);
2018-09-12 01:29:49 +02:00
}