From 61cd161d8e5fae1a6a55d16aca7074674f7379fb Mon Sep 17 00:00:00 2001 From: Timo Ley Date: Sun, 28 May 2023 22:45:01 +0200 Subject: [PATCH] feat: add IWandableBlock --- .../tilera/auracore/api/IWandableBlock.java | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/main/java/dev/tilera/auracore/api/IWandableBlock.java diff --git a/src/main/java/dev/tilera/auracore/api/IWandableBlock.java b/src/main/java/dev/tilera/auracore/api/IWandableBlock.java new file mode 100644 index 0000000..99ee759 --- /dev/null +++ b/src/main/java/dev/tilera/auracore/api/IWandableBlock.java @@ -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); + +}