mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-25 14:28:00 +01:00
23 lines
649 B
Java
23 lines
649 B
Java
|
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.
|
||
|
*
|
||
|
*/
|
||
|
public interface IDispenceable {
|
||
|
|
||
|
/**
|
||
|
* Called when dispensed.
|
||
|
*
|
||
|
* @param pos Block position in front of the dispenser
|
||
|
* @param facing Direction of the dispenser
|
||
|
* @param source The dispenser currently dispensing
|
||
|
* @return an ActionResult for the type of action to perform.
|
||
|
*/
|
||
|
public ActionResult onDispenced(BlockPos pos, EnumFacing facing, IBlockSource source);
|
||
|
}
|