feat: add IWandableBlock

This commit is contained in:
Timo Ley 2023-05-28 22:45:01 +02:00
parent 34a38d2160
commit 61cd161d8e
1 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,25 @@
package dev.tilera.auracore.api;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import net.minecraftforge.common.util.ForgeDirection;
public interface IWandableBlock {
/**
* Called by wands when interacting with the block
* @param world The World of the block
* @param stack The ItemStack of the wand
* @param impl The IWand implementation for the wand
* @param player The player
* @param x xCoord of the block
* @param y yCoord of the block
* @param z zCoord of the block
* @param side The side, which was activated
* @param md The metadata of the block
* @return true, if block was successfully wanded
*/
boolean onWandRightClick(World world, ItemStack stack, IWand impl, EntityPlayer player, int x, int y, int z, ForgeDirection side, int md);
}