OSDN Git Service

名前つけできるようにした
[chemicraft/chemicraft.git] / common / pcc / chemicraft / core / debug / CompoundHandlerTest.java
1 package pcc.chemicraft.core.debug;
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 import pcc.chemicraft.util.ICompoundHandler;
8
9
10 public class CompoundHandlerTest implements ICompoundHandler {
11
12         @Override
13         public ItemStack onItemRightClickHandler(ItemStack par1ItemStack, World par2World,
14                         EntityPlayer par3EntityPlayer) {
15                 System.out.println("onRightClick");
16                 return par1ItemStack;
17         }
18
19         @Override
20         public boolean onItemUseHandler(ItemStack par1ItemStack,
21                         EntityPlayer par2EntityPlayer, World par3World, int par4, int par5,
22                         int par6, int par7, float par8, float par9, float par10) {
23                 System.out.println("onItemUse");
24                 return true;
25         }
26
27         @Override
28         public void onUpdateHandler(ItemStack par1ItemStack, World par2World,
29                         Entity par3Entity, int par4, boolean par5) {
30                 System.out.println("onUpdate");
31         }
32
33         @Override
34         public int getIconIndexHandler() {
35                 return 0;
36         }
37
38 }