2014-01-17 19:12:49 +00:00
|
|
|
package thaumcraft.api.wands;
|
|
|
|
|
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
import net.minecraft.world.World;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @author azanor
|
2014-01-17 21:05:38 +00:00
|
|
|
* <p/>
|
|
|
|
* Add this to a tile entity that you wish wands to interact with in some way.
|
2014-01-17 19:12:49 +00:00
|
|
|
*/
|
|
|
|
|
2014-01-17 21:43:13 +00:00
|
|
|
public interface IWandable
|
|
|
|
{
|
2014-01-17 19:12:49 +00:00
|
|
|
public int onWandRightClick(World world, ItemStack wandstack, EntityPlayer player, int x, int y, int z, int side, int md);
|
|
|
|
|
|
|
|
public ItemStack onWandRightClick(World world, ItemStack wandstack, EntityPlayer player);
|
|
|
|
|
|
|
|
public void onUsingWandTick(ItemStack wandstack, EntityPlayer player, int count);
|
|
|
|
|
|
|
|
public void onWandStoppedUsing(ItemStack wandstack, World world, EntityPlayer player, int count);
|
|
|
|
}
|