コード例 #1
0
 @Override
 public boolean onItemUse(
     ItemStack is,
     EntityPlayer player,
     World world,
     int x,
     int y,
     int z,
     int side,
     float hitX,
     float hitY,
     float hitZ) {
   if (!world.isRemote) doDebugAction(is, ItemUtil.getTagRoot(is, false), player, Pos.at(x, y, z));
   return true;
 }
コード例 #2
0
 @Override
 public ItemStack onItemRightClick(ItemStack is, World world, EntityPlayer player) {
   if (!world.isRemote) doDebugAction(is, ItemUtil.getTagRoot(is, false), player, null);
   return is;
 }