OSDN Git Service

42578430f76c5a1f5e6dcb0fc98e2361c7c05c4b
[chemicraft/chemicraft.git] / common / pcc / chemicraft / util / ICompoundHandler.java
1 package pcc.chemicraft.util;
2
3 import net.minecraft.entity.Entity;
4 import net.minecraft.entity.player.EntityPlayer;
5 import net.minecraft.item.ItemStack;
6 import net.minecraft.world.World;
7
8 public interface ICompoundHandler {
9
10         /**
11          * 右クリック時のHandler
12          * @param par1ItemStack
13          * @param par2World
14          * @param par3EntityPlayer
15          * @return
16          */
17         public ItemStack onItemRightClickHandler(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer);
18
19
20         /**
21          * Itemを使用したときのHandler
22          * @param par1ItemStack
23          * @param par2EntityPlayer
24          * @param par3World
25          * @param par4
26          * @param par5
27          * @param par6
28          * @param par7
29          * @param par8
30          * @param par9
31          * @param par10
32          * @return
33          */
34         public boolean onItemUseHandler(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, World par3World, int par4, int par5, int par6, int par7, float par8, float par9, float par10);
35
36
37         /**
38          * 毎Tick呼ばれるHandler
39          * @param par1ItemStack
40          * @param par2World
41          * @param par3Entity
42          * @param par4
43          * @param par5
44          */
45         public void onUpdateHandler(ItemStack par1ItemStack, World par2World, Entity par3Entity, int par4, boolean par5);
46
47         /**
48          * iconIndexの指定
49          * @return iconIndex
50          */
51         public int getIconIndexHandler();
52
53 }